Steps
How we tested, and what is real
On 8 November 2026 we ran a throwaway n8n 2.43.7 in Docker (the official
n8nio/n8n:2.43.7image) with a Gmail Trigger (node version 1.4, plus 1.3 for one case) polling every minute, filtered on unread mail from one sender. We ran each workflow once by hand, the way Fetch Test Event does, then activated it with four broken credentials: a service account with a real generated key and an email Google does not know, a service account with a broken key, a Gmail OAuth2 credential that was never connected, and one with dead tokens. Then we read the server log, the Executions list and the active flag, also after a restart. Rows marked tested are copied from those runs. We had no real Gmail inbox, so the rows about which emails fire are read from the node's own source code in 2.43.7 and are marked that way.Quick answer: which problem do you have?
What you see Cause Fix Workflow is Active, nothing ever runs, no failed executions (tested) The credential is broken. The Gmail Trigger swallows poll errors: activation succeeds, and each poll only writes There was a problem in 'Gmail Trigger' node in workflow '...': 'undefined'to the server log.Open the trigger and click Fetch Test Event: a manual run shows the real error. Fix the credential, then deactivate and activate again. Unable to sign without access token(tested)Gmail OAuth2 credential saved but never connected. Open the credential and finish Sign in with Google. Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method).(tested)n8n tried to refresh the OAuth2 token and Google rejected the Client ID or Secret. Copy the Client ID and Secret again from the same Google Cloud OAuth client and reconnect. 400 - {"error":"invalid_grant","error_description":"Invalid grant: account not found"}(tested)Service account whose client_emailGoogle does not know, or a key from another project.Copy client_emailandprivate_keyagain from the same JSON key file. A service account also needs domain-wide delegation and a user to impersonate to read a Workspace mailbox.secretOrPrivateKey must be an asymmetric key when using RS256(tested)The Private Key field does not hold a valid key. Paste the whole private_keyvalue, BEGIN and END lines included.Emails already in the inbox never trigger (from the node source) The first live poll saves the current time; later polls add after:that time to the Gmail search.By design. Send a new email after activating, or use a Gmail node (Get Many) once for the backlog. Fetch Test Event shows an old email (from the node source) The manual test asks Gmail for 1 matching email with no time filter. Expected. It does not mean the live trigger will fire for that email. Some emails are skipped when Read Status is Unread (from the node source; not tested live) The filter adds is:unread. An email you open on your phone before the next poll no longer matches.Set Read Status to Unread and read emails and dedupe on the message idif needed.No email body, no attachments (from the node source) Simplify is on by default and only fetches metadata (subject, from, to, snippet, labels). The Download Attachments option is hidden while Simplify is on. Turn Simplify off to get text,htmland the Options; then turn on Download Attachments (files arrive asattachment_0, ...).Picked 2 labels and nothing fires (from the node source / Gmail API docs; not tested live) Label Names or IDs only returns emails that have all the labels you pick. Pick one label, or use the Search filter with label:a OR label:b.Your own sent emails or drafts never fire (from the node source) Since node version 1.3, emails labelled SENT and not INBOX are skipped; since 1.2, drafts are skipped unless Include Drafts is on. Spam and Trash are skipped unless you include them. Use Search (for example in:sent) with a Gmail node on a schedule instead.Only 10 emails per run when many arrive (from the node source) Node version 1.4 has Max Emails per Poll (default 10, max 50). The rest wait for the next polls. Raise it to 50 or poll more often; your workflow should handle several items per run. Active, but it never runs: the silent part
This is what we saw in every broken setup. All five workflows activated with HTTP 200 and
"active":true, stayed active after 2 minutes and after a container restart, and never produced a single trigger execution. Unlike the Google Drive Trigger, there was noThere was a problem activating the workflowline at all. The node source explains why: the Gmail Trigger saves its start time before it calls Gmail, and once that is saved, any error in a poll is caught and only logged. In the server log we got one line per poll, likeThere was a problem in 'Gmail Trigger' node in workflow 'drDhJaeRpSciUFn6': 'undefined'(for the service account it ended in'invalid_grant'), plus the raw error lines above. Because no execution fails, an error workflow never fires either.See the real error: Fetch Test Event
A manual run does not swallow anything. In our runs, each broken credential gave a failed manual execution with the real message:
Unable to sign without access token,Client authentication failed ...,invalid_grantwith "account not found", or the RS256 key error. So when a Gmail Trigger is quiet, open it and click Fetch Test Event before you change any filter. If it returns an email, the credential works and the problem is your filters or the timing (next step). On a self-hosted n8n you can also rundocker logs n8n 2>&1 | grep "Gmail Trigger".Which emails fire, and when
The Gmail Trigger polls; it is not a push from Google. On its first live poll it stores the current time; each later poll searches Gmail with your filters plus
after:the last time, so a new email shows up on the next poll, not instantly. Emails that were already there never fire. If you add Read Status, its default is Unread emails only, which addsis:unreadto the search. The Sender filter addsfrom:, and Search takes the same syntax as the Gmail search box. The trigger never marks an email as read, so if you need each email handled once downstream, add a Gmail node with Mark as Read (or a label) after the step that uses it.Get warned when the trigger breaks
Because poll errors never create a failed execution, a Gmail Trigger with an expired credential can stay silent for weeks. Two cheap checks: reconnect the credential when Google revokes it (an OAuth app in Testing mode gets tokens that Google says expire after 7 days), and add a small scheduled workflow that runs a Gmail node (Get Many, limit 1) once a day on the same credential. A failing node in a scheduled run creates a normal failed execution, so your error workflow can alert you. See get alerted when an n8n workflow stops running.
All test results
Real runs on n8n 2.43.7 in Docker, 8 November 2026, Gmail Trigger v1.4 (v1.3 for one row), Poll every minute, filters Read Status = unread and Sender = billing@example.com, no real Gmail account.
| Test | Result |
|---|---|
| Manual run, service account with fake email and real RSA key | Error: 400 - {"error":"invalid_grant","error_description":"Invalid grant: account not found"} |
| Manual run, service account with Private Key "hello" | Error: secretOrPrivateKey must be an asymmetric key when using RS256 |
| Manual run, OAuth2 never connected (v1.4 and v1.3) | Error: Unable to sign without access token |
| Manual run, OAuth2 with fake tokens | Error: Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method). |
| Activate each of the 5 workflows | HTTP 200, active: true. No "problem activating" line in the log. |
| Server log over the next 130 seconds | 3 to 4 lines per workflow: There was a problem in 'Gmail Trigger' node in workflow '...': 'undefined' (service account: 'invalid_grant') |
| Executions list | Only the 5 manual runs (status error). Zero trigger executions. |
| Active flag after 130 s, and after docker restart | Still active: true; the same log lines kept coming after the restart. |
Checklist
- Fetch Test Event returns an email (credential works).
- Nothing in the server log like "There was a problem in 'Gmail Trigger' node".
- You send a new email after activating; old ones never fire.
- Read Status: Unread only skips emails you already opened.
- Only one label picked, or use Search with OR.
- Simplify off if you need the body or attachments, then Download Attachments on.
- Max Emails per Poll high enough for your volume (v1.4).
Good to know
- New rows that never fire, or Row Updated errors: n8n Google Sheets Trigger not working.
- Gmail node actions (send, get, label) failing: n8n Gmail node not working.
- Not using Gmail OAuth? The IMAP Email Trigger and its attachments: n8n Email Trigger (IMAP) attachments.
- The sign-in pop-up fails with redirect_uri_mismatch: n8n OAuth2 redirect_uri_mismatch.
- Same polling behaviour for files: n8n Google Drive Trigger not working.
- Other "active but not running" causes: n8n workflow could not be activated.
- Writing each email into a sheet: n8n Google Sheets node not working.
- Every error text from our guides: n8n error message index.
What we did not test
A real Gmail inbox, so we did not watch a live email fire. The rows about old emails, Read Status, labels, Simplify, sent mail, drafts and Max Emails per Poll come from the node's source code in 2.43.7 (and Google's docs for label matching and Testing-mode token expiry). We also did not test n8n Cloud's managed Google sign-in or a Workspace service account with domain-wide delegation.
Start from a working agent
FAQ
Why is my n8n Gmail Trigger not triggering?
In our tests a broken credential still left the workflow active, with no failed executions; the error only appeared in the server log as "There was a problem in 'Gmail Trigger' node". Click Fetch Test Event to see the real error. Also, emails already in the inbox never fire, and Read Status = Unread skips emails you opened before the poll.
Does the n8n Gmail Trigger fire for existing emails?
No. On its first live poll it saves the current time and only returns emails received after it.
Why does the Gmail Trigger not give me the email body or attachments?
Simplify is on by default and only fetches metadata. Turn Simplify off to get text and html, then turn on Download Attachments in Options.
Why does Fetch Test Event show an old email?
The manual test asks Gmail for one matching email without the time filter. The live trigger only returns emails newer than its last poll.
Why does my error workflow not catch Gmail Trigger errors?
Gmail Trigger poll errors are only logged; they never create a failed execution, so the error workflow is never called. Add a daily scheduled Gmail node check on the same credential.
Related guides
- n8n Gmail node not working: Client authentication failed, invalid_grant, OAuth2 fixes
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes
- n8n Google Calendar node not working: "Not a valid Google Calendar ID", OAuth2 fixes
- n8n Google Drive node not working: Bad request, binary file not found, OAuth2 fixes
- Get a daily AI summary of your unread email
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Drive Trigger not working: not firing, activation errors and fixes