Google Calendar API: Calendar usage limits exceeded

后端 未结 7 2406
南方客
南方客 2020-12-11 01:40

We have an application that does migrations between Google Apps domains. For calendar migrations we using Import API(https://developers.google.com/google-apps/calendar/v3/re

7条回答
  •  余生分开走
    2020-12-11 02:02

    Having the same issue.

    I am using Version 3 code, TwoLeggedOAuthCredentials and the program is an authorized registered client (IOW: the calendars are created on behalf of multiple accounts.)

    Last successful large imports: 2013-01-21, 4929 Google requests & 2013-01-22, 1103 Google requests (spread across multiple users)

    At about 4% of our quota (https://code.google.com/apis/console/b/0/#project:1077083635926:quotas) the program starts getting the following error: https://www.googleapis.com/calendar/v3/calendars?alt=json returned "Calendar usage limits exceeded.">

    If the program is re-run after a time (15 minutes +) it will run a couple more requests before receiving the same error. The calendar information it errored on previously will succeed if re-run after a "cool-off" period. The code itself sleeps for the number of times it receives that error multiplied by 20 seconds and tries ten times (waits 20 seconds after the first error, forty seconds after the second error) but it has increased the time to run the program greatly.

    I increased the per user limit from 5 requests/second/user to 10.0 requests/second/user yesterday. So far this has had no noticeable change in behavior. Stepping through the code slowly also doesn't seem to have impact, leading me to believe it is unrelated to the requests per second.

    If this is an undocumented per-user quota (and not their well documented request/second/user quota) it is new.

提交回复
热议问题