googleapis / google-api-nodejs-client

Google's officially supported Node.js client library for accessing Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT (Service Tokens) is included.
https://googleapis.dev/nodejs/googleapis/latest/
Apache License 2.0
11.26k stars 1.91k forks source link

Google Calendar "Calendar limits exceeded" 403 error, but "Queries per minute" are way under the limit #3422

Closed davidp-ro closed 5 months ago

davidp-ro commented 5 months ago

Hello!

We're dealing with a weird situation where some Google Cal API requests respond with the 403 "Calendar limits exceeded", even though I look in the Console, we seem to be way under for "Queries per minute" (which I assume count "Queries per minute per user" as well?).

The setup is like this:

Every ~20 minutes we search for events with a custom criteria:

The bottom line is - where's the flaw and what is causing the API to trigger the rate limit when, if you look at the Queries per minute value for the entire project we're between 7-20 queries/min...

I know ideally each calendar used would be signed into our platform and thus we'd use their own account to make changes, but, that's not an option at this time.

Ideas/Opinions?

Thanks!

davidp-ro commented 5 months ago

It seems like this is the intended behaviour so I'll close this myself.

TLDR: When moving/creating/etc events, do not send notification emails as that will trigger the spam protection.