Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quota exceeded for quota metric 'Queries' and limit 'Queries per minute per user' of service 'gmail.googleapis.com' for consumer #78

Open
timrabbetts opened this issue Feb 11, 2022 · 2 comments

Comments

@timrabbetts
Copy link

Turns out this issue is because I had over 100 emails in my inbox that matched a query and when reading it was pulling them all back. So I removed all emails from inbox and it started working, took me ages to figure this out! You could also fine tune the query for today's date maybe?

@timrabbetts
Copy link
Author

trying this out at the moment will confirm if it works

const today = new Date()
      const yesterday = new Date(today)
      yesterday.setDate(yesterday.getDate() - 1)

      const options = {
        subject: subject,
        from: '*',
        to: to,
        wait_time_sec: 30,
        max_wait_time_sec: 60,
        include_body: true,
        after: yesterday
      }

@meoke
Copy link

meoke commented Aug 31, 2022

Hi @timrabbetts !
Did this solution work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants