// guides · n8n error index

n8n Gmail node not working: Client authentication failed, invalid_grant, OAuth2 fixes

n8n Gmail node failing? Tested on 2.43.7: "Client authentication failed", "Unable to sign without access token", service account invalid_grant and "Invalid email address".

Updated 2026-10-30 · 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 30 October 2026 we ran a throwaway n8n 2.43.7 in Docker (the official n8nio/n8n:2.43.7 image) and ran the Gmail node (version 2.1, Message: Send and Get Many) with five credentials: a service account with a freshly generated RSA key and an account email Google does not know, the same account with Impersonate a User on, a broken private key, a Gmail OAuth2 credential that was never connected, and one with a stored but fake token and a fake client. The rows marked tested are copied from those runs. We had no real Google account, so the delegation, precondition, expired-token and API-disabled rows come from Google's documentation and are marked as not tested.

  2. Quick answer: which error do you have?

    What you getCauseFix
    Unable to sign without access token (tested)The Gmail OAuth2 credential was saved but you never clicked Sign in with Google.Open the credential and finish the Google sign-in.
    Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method). (tested)n8n tried to refresh the access token and Google rejected the Client ID or Client Secret.Copy the Client ID and Secret again from the same Google Cloud OAuth client, save, and reconnect.
    400 - {"error":"invalid_grant","error_description":"Invalid grant: account not found"} (tested)Service account: the client_email does not exist or belongs to another project.Copy client_email from the JSON key file again, or create a new key.
    400 - {"error":"invalid_grant","error_description":"Not a valid email or user ID."} (tested)Service account with Impersonate a User on, and the impersonated email is not a user Google knows.Use a real Google Workspace mailbox in your own domain. Personal @gmail.com accounts cannot be impersonated.
    secretOrPrivateKey must be an asymmetric key when using RS256 (tested)The Private Key field does not hold a valid key.Paste the full private_key value, BEGIN and END lines included.
    Invalid email address (tested)The To field is not an email address (often an expression that resolved to a name or an empty value).Check the resolved value in the input panel; separate several addresses with commas.
    unauthorized_client: Client is unauthorized to retrieve access tokens using this method (not tested, Google docs)Domain-wide delegation is not set up for the service account, or the Gmail scope is missing.In Google Workspace Admin, add the service account client ID with the Gmail scopes.
    Precondition check failed / 400 (not tested, Google docs)Service account calling Gmail without impersonating a user.Turn on Impersonate a User and enter a Workspace mailbox.
    invalid_grant: Token has been expired or revoked (not tested, Google docs)OAuth app left in Testing mode: refresh tokens expire after 7 days, or you changed your Google password.Publish the OAuth consent screen to Production, then reconnect.
    Gmail API has not been used in project ... or it is disabled (not tested, Google docs)The Gmail API is not enabled in the Cloud project of the credential.Enable Gmail API in that project, wait a minute, retry.

  3. OAuth2: "Unable to sign without access token" and "Client authentication failed"

    A Gmail OAuth2 credential that was saved but never connected gave Unable to sign without access token: open it and click Sign in with Google. When n8n holds a token Google does not accept, it tries to refresh it with your Client ID and Secret. With a wrong client, both Send and Get Many failed with Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method). That message is about the Client ID and Secret, not your Gmail password. If sign-in itself fails with redirect_uri_mismatch, see n8n OAuth2 redirect_uri_mismatch.

  4. Service account: account not found, user ID and private key errors

    Unlike the Google Sheets node, the Gmail node shows Google's real message directly: an unknown service account gave 400 - {"error":"invalid_grant","error_description":"Invalid grant: account not found"}, the same text the credential Test shows. With Impersonate a User on and an address that is not a real Workspace user, Google answered Not a valid email or user ID. A broken Private Key field gave secretOrPrivateKey must be an asymmetric key when using RS256. A service account can only send as a user in a Google Workspace domain where an admin enabled domain-wide delegation; for a personal @gmail.com address use OAuth2 instead.

  5. "Invalid email address" before anything is sent

    With not-an-email in the To field, the node stopped with Invalid email address before calling Google at all. This usually comes from an expression that resolved to a name, an empty string, or an array. Open the input panel, look at the resolved value, and join several addresses with commas.

All test results

Real runs on n8n 2.43.7 in Docker, 30 October 2026, Gmail node v2.1, no real Google account.

TestResult
Service account, valid RSA key, unknown account email: Send400 - invalid_grant, Invalid grant: account not found
Same, Impersonate a User = user@example.com400 - invalid_grant, Not a valid email or user ID.
Same, credential TestPrivate key validation failed: 400 - invalid_grant, Invalid grant: account not found
Private key = "hello": SendsecretOrPrivateKey must be an asymmetric key when using RS256
OAuth2 credential saved, never signed in: SendUnable to sign without access token
OAuth2 with a fake stored token and fake client: Send and Get ManyClient authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method).
To = not-an-emailInvalid email address (no call to Google)

Checklist

Good to know

What we did not test

A real Google account or Workspace domain, so the delegation, precondition, expired-token and API-disabled rows come from Google's documentation, not from our runs. We also did not test the Gmail Trigger node or n8n Cloud's managed Google sign-in.

FAQ

What does "Client authentication failed" mean in the n8n Gmail node?

n8n tried to refresh the OAuth2 token and Google rejected the Client ID or Client Secret. Copy both again from the same Google Cloud OAuth client and reconnect.

Why does the n8n Gmail node say "Unable to sign without access token"?

The Gmail OAuth2 credential was saved but never connected. Open it and click Sign in with Google.

Can I use a Google service account with the n8n Gmail node for a personal Gmail address?

No. Service accounts can only act for users in a Google Workspace domain with domain-wide delegation. Use OAuth2 for @gmail.com.

What does "Not a valid email or user ID" mean in n8n Gmail?

The Impersonate a User email is not a user Google knows in your Workspace domain. Use a real mailbox in that domain.

Why does the n8n Gmail node say "Invalid email address"?

The To, CC or BCC value is not an email address, often an expression that resolved to a name or nothing. The node checks this before calling Google.

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.