// guides · n8n error index

n8n Gmail Trigger not working: not firing, silent errors and fixes

n8n Gmail Trigger not triggering? Tested on 2.43.7: broken credentials stay "active" with no failed executions, the hidden log error, why old and opened emails never fire, and missing body or attachments.

Updated 2026-11-08 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. 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.7 image) 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.

  2. Quick answer: which problem do you have?

    What you seeCauseFix
    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_email Google does not know, or a key from another project.Copy client_email and private_key again 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_key value, 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 id if 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, html and the Options; then turn on Download Attachments (files arrive as attachment_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.

  3. 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 no There was a problem activating the workflow line 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, like There 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.

  4. 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_grant with "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 run docker logs n8n 2>&1 | grep "Gmail Trigger".

  5. 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 adds is:unread to the search. The Sender filter adds from:, 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.

  6. 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.

TestResult
Manual run, service account with fake email and real RSA keyError: 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 tokensError: Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method).
Activate each of the 5 workflowsHTTP 200, active: true. No "problem activating" line in the log.
Server log over the next 130 seconds3 to 4 lines per workflow: There was a problem in 'Gmail Trigger' node in workflow '...': 'undefined' (service account: 'invalid_grant')
Executions listOnly the 5 manual runs (status error). Zero trigger executions.
Active flag after 130 s, and after docker restartStill active: true; the same log lines kept coming after the restart.

Checklist

Good to know

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.

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

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.