Google - Client Authentication Error

Hello , I am trying to scrape free leads using a specific workflow but I have a client authentication error in my Google Sheets node .Can you help me on this error ,how can I solve it etc..

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
1 Like

Hello @Kuti01 . Did you setup the client id and secret correctly in google cloud and enable the relevant google sheets services that go with your workflow? Did you also input the client id and secret into n8n correctly?

Hi @Kuti01 your Client Secret appears too short - check out here on how to find/create the correct one

Hey @Kuti01

This error usually means Google is rejecting the OAuth client itself, so I’d first recheck the Client ID, Client Secret, and especially the exact redirect URI configured in Google Cloud.
From your screenshot, I’d verify that the Google OAuth app is a Web application client and that the callback matches your n8n URL exactly, including …/rest/oauth2-credential/callback, because a mismatch there commonly causes invalid_client /Unauthorized. I’d also make sure the Google Sheets and Google Drive APIs are enabled in that same Google project, then reconnect the credential from scratch.