I have a problem with the Google Calendar API. We are using the API with OAuth2 authentication in Python code.
It was working fine for about three years, but after today, it started to output the following error log.
<HttpError 403 when requesting https://www.googleapis.com/calendar/v3/calendars/**********************/events?alt=json returned "Quota exceeded for quota metric 'Queries' and limit 'Queries per day' of service 'calendar-json.googleapis.com' for consumer ‘project_number:*************'.">
However, the above log is not always output, and the error rate is about 30%.
We have set the allocation limit to 1,000,000, and there are about 3,000 queries for 24 hours. Even though the number of times per day has not reached the limit, we are being told to use up our Quota for the day.
The API methods we are using are as follows
- calendar.v3.Events.Insert
- calendar.v3.Events.Get
- calendar.v3.Events.Update
- Delete calendar.v3.Events.
- calendar.v3.CalendarList.
- List calendar.v3.Calendars.
- List calendar.v3.Acl.
- Calendars.Insert calendar.v3.
Calendars.v3.Events.Insert is requested about 2000 times in 24 hours. Calendars.Insert has been requested 2 times in 24 hours.
Has anyone encountered this before? Thank you.