异常:服务在一天内调用了太多次:urlfetch 但我在限制下
Exception: Service invoked too many times for one day: urlfetch but I'm under limit
您好,我在链接的 Google 表格 Google Apps 脚本中有此功能。它在 sheet 中被调用了 30,000 行。我有一个付费的 G Suite Basic 帐户。根据 Google 文档,我应该能够进行 100,000 次 URLFetch 调用 https://developers.google.com/apps-script/guides/services/quotas
函数是
function GetLatNLon(Input) {
var api = "myapikey";
var base = "https://maps.googleapis.com/maps/api/geocode/json?address=";
var url = base + Input + "&key=" + api;
var response = UrlFetchApp.fetch(url);
var data = JSON.parse(response);
var Lat = data.results[0].geometry.location.lat;
var Lon = data.results[0].geometry.location.lng;
var LatNlon = Lat + ", "+ Lon;
return LatNlon;
}
假设这个函数实际上像你所说的那样每行调用一次,我确实注意到配额下面的注释 table:
Note: Newly created G Suite domains are subject to the consumer limit for the first billing cycle if they have six or more users, or several billing cycles if they have fewer users. For more information, see the Help Center page on sending limits.
所以也许是这样。
您好,我在链接的 Google 表格 Google Apps 脚本中有此功能。它在 sheet 中被调用了 30,000 行。我有一个付费的 G Suite Basic 帐户。根据 Google 文档,我应该能够进行 100,000 次 URLFetch 调用 https://developers.google.com/apps-script/guides/services/quotas
函数是
function GetLatNLon(Input) {
var api = "myapikey";
var base = "https://maps.googleapis.com/maps/api/geocode/json?address=";
var url = base + Input + "&key=" + api;
var response = UrlFetchApp.fetch(url);
var data = JSON.parse(response);
var Lat = data.results[0].geometry.location.lat;
var Lon = data.results[0].geometry.location.lng;
var LatNlon = Lat + ", "+ Lon;
return LatNlon;
}
假设这个函数实际上像你所说的那样每行调用一次,我确实注意到配额下面的注释 table:
Note: Newly created G Suite domains are subject to the consumer limit for the first billing cycle if they have six or more users, or several billing cycles if they have fewer users. For more information, see the Help Center page on sending limits.
所以也许是这样。