Reputation: 99
Adding Calendar to Google using Google Calendar APIs is throwing exception randomly(not every time or not on specific conditions) while adding calendars :
{"Google.Apis.Requests.RequestError
Calendar usage limits exceeded. [403]
Errors [Message[Calendar usage limits exceeded.]
Location[ - ] Reason [quotaExceeded] Domain[usageLimits]]"}
Limit is not exceeded still there is exception.
Upvotes: 1
Views: 858
Reputation: 116868
You are hitting one of the quota limits. I don't know what you are doing exactly but I would start with the last option below exponential backoff. I suspect that your application is running to fast you need to slow it down that's why you are not getting this all the time you are hitting flood protection. Example: X number of requests per second.
Background info: The following is directly from Googles Documentation.
403: Calendar usage limits exceeded The user reached one of the Google Calendar limits in place to protect Google users and infrastructure from abusive behavior.
{
"error": {
"errors": [
{
"domain": "usageLimits",
"message": "Calendar usage limits exceeded.",
"reason": "quotaExceeded"
}
],
"code": 403,
"message": "Calendar usage limits exceeded."
}
}
Suggested actions:
Upvotes: 1