Google calendar api usage limit

for the past 2 days, we receive this error for almost all calls to google calendar api :

{"domain"=>"usageLimits",
"reason"=>"quotaExceeded",
"message"=>"Calendar usage limits exceeded."}],
 "code"=>403,
"message"=>"Calendar usage limits exceeded."

We checked all our quota on google console and everything looks good. There is no way for us to find out where is the problem about the usage limit.

The project id is : 338879375920

Upvotes: 1

Views: 118

Answers (1)

Fernando Lara
Fernando Lara

Reputation: 2416

This limit appears in Google's official documentation. The problem is not related to the quotas you are able to see in the project from the GCP console but to the "protection" limits that Google hast set up in general for their service to be used.

The error pretty much means that you are making too many requests in a short period of time and their server is protecting itself by showing you this error. This can be resolved by implementing exponential backoff in your code. The way to implement this is completely up to you and any language that you are currently using for your project, but it basically involves just retrying the same request again only adding wait times each time it fails since these limits can not be increased.

References:

Upvotes: 1

Related Questions