I’m experiencing a persistent issue when connecting Google credentials (Google Docs / Drive / Sheets) on n8n Cloud.
No matter how I configure Google OAuth, I always end up with a redirect_uri_mismatch (Error 400), and after a full day of troubleshooting I believe the issue is caused by inconsistent redirect URIs generated by n8n Cloud.
The problem
In the n8n credential UI, the OAuth Redirect URL shown is:
https://oauth.n8n.cloud/oauth2/callback
However, when the OAuth flow fails, Google’s error details show that n8n actually sends:
https://eartigas.app.n8n.cloud/rest/oauth2-credential/callback
This means:
The redirect URI displayed by n8n ≠ the redirect URI actually used during the OAuth flow.
Google rejects the request with:
Error 400: redirect_uri_mismatch
Exact Google error message
Error 400: redirect_uri_mismatch
The redirect URI in the request does not match the authorized redirect URIs.
Request details:
redirect_uri=https://eartigas.app.n8n.cloud/rest/oauth2-credential/callback
flowName=GeneralOAuthFlow
What I already tried
Created multiple new Google Cloud projects
Created new OAuth Client IDs
Correctly configured OAuth Consent Screen
Added both redirect URIs to Google Cloud:
https://oauth.n8n.cloud/oauth2/callback
https://eartigas.app.n8n.cloud/rest/oauth2-credential/callback
Cleared browser cache & cookies
Tried in private/incognito mode
Restarted sessions and credentials
Verified domain authorization and test users
Verified Client ID / Client Secret
Verified scopes (Drive, Docs, Drive.file)
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: 2.1.2
- Database (default: SQLite): PostgreSQL (managed by n8n Cloud)
- n8n EXECUTIONS_PROCESS setting (default: own, main): own
- Running n8n via (Docker, npm, n8n cloud, desktop app): n8n Cloud
- Operating system: n8n Cloud (managed environment)