admin管理员组

文章数量:1202968

When running the a Google Apps Script snippet I've copied from the source below I'm getting the following error message:

Error Exception: Service invoked too many times for one day: route. (line 11).

.gs

From my understanding this means that one of Google's quotas/limits has been exceeded by running the script. I am wanting to understand which of the following quota(s) have been affected in the following list:

The error message says its coming from "line 11", a line which contains the code .getDirections();.

I'd like to know which quota(s) this line is linked to in order to hopefully get an idea of how many times I can use this script before exceeding the limit. I can't tell as the name in the error doesn't seem to match any of the ones in the quota list therefore I'm not sure which one has been exceeded.

I'm guessing it's a Google Map direction query but just wanted to be sure.

I tried searching the quota list (), hoping to find quota information which matches the name in the error message, however I found that none seem to match therefore I don't know which quota(s) are affected by running this script and am not sure how to proceed.

When running the a Google Apps Script snippet I've copied from the source below I'm getting the following error message:

Error Exception: Service invoked too many times for one day: route. (line 11).

https://github.com/rvbautista/google-sheets-distance-between-two-addresses/blob/main/Code.gs

From my understanding this means that one of Google's quotas/limits has been exceeded by running the script. I am wanting to understand which of the following quota(s) have been affected in the following list:

https://developers.google.com/apps-script/guides/services/quotas

The error message says its coming from "line 11", a line which contains the code .getDirections();.

I'd like to know which quota(s) this line is linked to in order to hopefully get an idea of how many times I can use this script before exceeding the limit. I can't tell as the name in the error doesn't seem to match any of the ones in the quota list therefore I'm not sure which one has been exceeded.

I'm guessing it's a Google Map direction query but just wanted to be sure.

I tried searching the quota list (https://developers.google.com/apps-script/guides/services/quotas), hoping to find quota information which matches the name in the error message, however I found that none seem to match therefore I don't know which quota(s) are affected by running this script and am not sure how to proceed.

Share Improve this question edited yesterday halfer 20.4k19 gold badges108 silver badges201 bronze badges asked Jan 20 at 22:54 Max MillmanMax Millman 71 bronze badge 2
  • 2 All the URLs are wrong. Some parts were replaced by .... – Wicket Commented Jan 20 at 23:20
  • Oh, how strange. Have updated them just now. Thanks for mentioning that – Max Millman Commented Jan 21 at 0:06
Add a comment  | 

1 Answer 1

Reset to default 0

This is the quota that you are looking for:

Feature Consumer (e.g., gmail.com)
and G Suite free edition
(legacy)
Google Workspace accounts
Google Map Direction query 1,000 / day 10,000 / day

The script uses one of the "Other Google Services", more specifically, the Maps Service.

本文标签: