OAuth Redirect URI Issue with Google Docs on Render-Hosted n8n

I have a self-hosted n8n instance running on Render with PostgreSQL, but I’m unable to complete the Google Docs OAuth2 connection. The issue is that the redirect URL in the credential settings is set to http://localhost:5678, which causes the OAuth flow to fail with a “site can’t be reached” error. Even though I’ve added all correct redirect URIs in the Google Cloud console, n8n still attempts to use the localhost address. I believe the fix is to update the credential to use the correct Render URL as the redirect URI.



Hey @adslab360 hope all is well, have you read this page?

1 Like

localhost is not the correct redirect url, it needs to be your instance’s public URL, please read the doc I sent for the solution

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.