N8n mismatch error

Describe the problem/error/question

Hey everyone, I’m stuck with a Google OAuth issue on n8n Cloud and would really appreciate some help.
What I’ve confirmed OAuth Client ID in n8n matches exactly the one in Google Cloud OAuth client type is Web application Authorized redirect URIs
Google Drive API is enabled OAuth consent screen is configured correctly Credentials recreated in n8n Tested in incognito + different browsers Despite all of this, Google still returns redirect_uri_mismatch. Question Is there any known issue with n8n Cloud where the OAuth redirect URI differs internally from what’s shown in the UI, or requires an additional domain (e.g. oauth.n8n.cloud) to be registered?
I have tried everything possible when i sign in with gmail and press go to cloud(unsafe) i then select all on what n8n has access too then im met with A white error page that says Error: Bad Request More details {“error”:“redirect_uri_mismatch”,“error_description”:“Bad Request”} Failed to connect. The window can be closed now or Error: The OAuth callback state is invalid! i swear i have the correct redirect URL in google cloud More details Failed to connect. The window can be closed now. Happy to provide logs or screenshots if needed. Thanks in advance :folded_hands:!

What is the error message (if any)?

{“error”:“redirect_uri_mismatch”,“error_description”:“Bad Request”} Failed to connect. The window can be closed now or Error: The OAuth callback state is invalid! i swear i have the correct redirect URL in google cloud More details Failed to connect.

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:

Hi,

You may be facing the issue many are seeing on n8n cloud. An upgrade to the latest stable version on n8n cloud should help: N8n Cloud Google Drive OAuth2 failing: redirect_uri_mismatch (Gmail + Workspace) - #19 by KhemOptimal

Khem

1 Like