Gmail Trigger node returns error: "The service is receiving too many requests from you"

Describe the problem/error/question

I have setup a Gmail trigger node with the default setting to poll every minute.

This morning I woke up to find that the node returns the error: “The service is receiving too many requests from you”. For reference, the Gmail account is new and did not receive any emails during the night. Yesterday, while developing it was triggered a couple of times, but no more than 20 email were received + a couple of manual runs but no more than 50 I would guess. So the workflow didn’t trigger much on new incoming messages.

Upon delving deeper, I found that it’s an issue with the Gmail API quota being exceeded. I am a bit puzzled though, why is the default option to poll every single minute if the quota get exceeded from this.

Or am I missing something? How should this node be configured to avoid the Gmail API quota being exceeded?

Main issue: I disabled the workflow but even after the grace period mentioned in the error I can’t re-enable it. It returns the same error message. It makes me wonder if the trigger has problems shutting down and remains live and multiple polls remain active in the background even though the workflow is disabled?

For reference: it’s a fresh Gmail account - there are no other integrations using the Gmail API for that account.

I am also wondering, is there no Google Publish/Subscribe node implementation to avoid polling and exceeding quote, and still have a responsive workflow?

What is the error message (if any)?

From Gmail Trigger
Error code
429

Full message

{ "error": { "code": 429, "message": "User-rate limit exceeded. Retry after 2024-07-16T05:46:20.345Z", "errors": [ { "message": "User-rate limit exceeded. Retry after 2024-07-16T05:46:20.345Z", "domain": "global", "reason": "rateLimitExceeded" } ], "status": "RESOURCE_EXHAUSTED" } }

Information on your n8n setup

  • n8n version: 1.49
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Ubuntu 23.10 (GNU/Linux 6.5.0-26-generic x86_64)

Please share your workflow

{
  "meta": {
    "instanceId": "f843d805e4c1691a9695cd3f668d5e10f8e680042f5ae6f44fb1f99bbea4f2f3"
  },
  "nodes": [
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "simple": false,
        "filters": {
          "includeSpamTrash": true
        },
        "options": {
          "downloadAttachments": false
        }
      },
      "id": "8a010029-0cb2-424c-8ca6-374c0325a49a",
      "name": "Incoming Emails",
      "type": "n8n-nodes-base.gmailTrigger",
      "typeVersion": 1.1,
      "position": [
        -920,
        680
      ],
      "credentials": {
        "gmailOAuth2": {
          "id": "PD1iJ2KqkIYP5oT8",
          "name": "Gmail account"
        }
      }
    }
  ],
  "connections": {},
  "pinData": {}
}```

Hi @drj

Do you see any excess executions in the logs? Can you check if the execution actually goes through or stopped at the Gmail trigger?
Also, which version are you on and what other nodes do you have in the workflow?

Thanks for sharing! :raised_hands:

I’m on 1.49 (see the question for full details) - the other nodes process the mails and add them to a database. There are no other Google operations.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.