// guides · n8n error index

n8n Google Sheets node not working: Bad request, invalid_grant, private key fixes

n8n Google Sheets node failing? Tested on 2.43.7: "Bad request - please check your parameters", invalid_grant, the RS256 private key error and OAuth2, plus 403 and 404.

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), added Google Sheets credentials, and ran the Google Sheets node (version 4.5, Append Row, a made-up document ID). We used a service account with a freshly generated RSA key and an account email Google does not know, a deliberately broken private key, a key pasted with literal \n sequences, and an OAuth2 credential that was never connected. Those rows below are copied from the runs. We had no real Google account in the test, so the 403, 404, API-disabled, quota and expired-token rows come from Google's documentation and are marked as not tested.

  2. Quick answer: which error do you have?

    What you getCauseFix
    Bad request - please check your parameters when the node runs (tested)The node hides the real Google error. In our run the true cause was an unknown service account, which only the credential Test showed.Open the credential and click Test to see Google's real message.
    invalid_grant: Invalid grant: account not found on credential Test (tested)The service account email does not exist, was deleted, or is from another project.Copy client_email from the JSON key file again, or create a new key.
    secretOrPrivateKey must be an asymmetric key when using RS256 (tested)The Private Key field does not hold a valid key: truncated, wrong field pasted, or the whole JSON file pasted in.Paste the full private_key value, from -----BEGIN PRIVATE KEY----- to -----END PRIVATE KEY-----.
    Unable to sign without access token (tested)An OAuth2 credential was saved but you never clicked Sign in with Google.Open the credential and finish the Google sign-in.
    The caller does not have permission / 403 (not tested, Google docs)The sheet is not shared with the service account email.Share the spreadsheet with the client_email as Editor.
    Requested entity was not found / 404 (not tested, Google docs)Wrong document ID, or a sheet the account cannot see.Use the ID between /d/ and /edit in the sheet URL.
    Google Sheets API has not been used in project ... or it is disabled (not tested, Google docs)The Sheets API is not enabled in the Google Cloud project.Enable Google Sheets API (and Drive API for the sheet picker) in that project.
    Quota exceeded for quota metric 'Read requests' / 429 (not tested, Google docs)Too many reads or writes per minute.Batch rows, add a Wait node; see n8n 429 rate limit.
    invalid_grant: Token has been expired or revoked (not tested, Google docs)OAuth app left in Testing mode: refresh tokens expire after 7 days.Publish the OAuth consent screen to Production, then reconnect.

  3. "Bad request - please check your parameters": press Test on the credential

    This is the trap we hit first. With a valid-looking service account that Google does not recognise, the Google Sheets node only said Bad request - please check your parameters. Nothing about the account. Opening the credential and clicking Test showed the real cause: Private key validation failed: 400 - {"error":"invalid_grant","error_description":"Invalid grant: account not found"}. So whenever the node gives you only "Bad request", run the credential Test before you change anything in the node.

  4. Service account private key errors

    With the Private Key field set to something that is not a key, both the node and the credential Test failed with secretOrPrivateKey must be an asymmetric key when using RS256 (the Test adds Private key validation failed: in front). Open the JSON key you downloaded from Google Cloud and paste the whole private_key value into Private Key, and client_email into Service Account Email. A common worry is the \n characters in the JSON file. In our test on 2.43.7, pasting the key with literal \n sequences worked exactly like a key with real line breaks, so that is not your problem.

  5. OAuth2: "Unable to sign without access token"

    An OAuth2 credential that was saved but never connected gave Unable to sign without access token. Open the credential and click Sign in with Google. If Google then shows redirect_uri_mismatch, the callback URL n8n sends does not match your Google Cloud client: see n8n OAuth2 redirect_uri_mismatch. If it worked for a week and then broke with Token has been expired or revoked, your OAuth consent screen is probably still in Testing mode, where Google expires refresh tokens after 7 days (Google docs, not tested by us).

  6. 403, 404 and API not enabled (not tested, Google docs)

    These need a real Google project, so this is from Google's documentation. A service account is a separate Google user: it cannot see your sheet until you share the sheet with its client_email, otherwise you get The caller does not have permission (403). Requested entity was not found (404) usually means a wrong document ID: use the part of the URL between /d/ and /edit. And the Google Sheets API must be enabled in the same Cloud project as the credential; the sheet picker in n8n also uses the Google Drive API.

All test results

Real runs on n8n 2.43.7 in Docker, 30 October 2026, Google Sheets node v4.5, no real Google account.

TestResult
Service account, valid RSA key, unknown account email: node runBad request - please check your parameters
Same, credential TestPrivate key validation failed: 400 - invalid_grant, Invalid grant: account not found
Private key = "hello": node run and credential TestsecretOrPrivateKey must be an asymmetric key when using RS256
Private key with literal \n instead of line breaksAccepted, same as the real key (reached Google)
OAuth2 credential saved, never signed inUnable to sign without access token

Checklist

Good to know

What we did not test

A real Google account, so the 403, 404, API-disabled, quota and expired-token rows come from Google's documentation, not from our runs. We also did not test the Google Sheets Trigger or n8n Cloud's managed Google sign-in.

FAQ

What does "Bad request - please check your parameters" mean in the n8n Google Sheets node?

The node is hiding Google's real error. Open the credential and click Test: in our run it showed invalid_grant "account not found", which the node never mentioned.

How do I fix "secretOrPrivateKey must be an asymmetric key when using RS256" in n8n?

The Private Key field does not contain a valid key. Paste the full private_key value from the service account JSON file, including the BEGIN and END lines.

Do I need to replace \n in the Google service account private key for n8n?

Not on n8n 2.43.7: in our test a key with literal \n sequences worked the same as one with real line breaks.

Why does n8n say "Unable to sign without access token" for Google Sheets?

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

Why does my n8n Google Sheets service account get 403 The caller does not have permission?

According to Google's docs, the sheet is not shared with the service account. Share it with the client_email address as Editor.

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.