Google Sheets account: problem with OAuth Redirect URI

I am switching from desktop version to self hosted cloud n8n.

When i attempt to criate the Google sheets, I am having a problem with the callback URI.

In n8n it looks like this:

I am not a developer but it seems strange to have an URI starting with http://localhost:xxx since this instance of n8n is now cloudbased.

Google Cloud is rejecting this URI:

Any idea of what I should here?

Describe the issue/error/question

What is the error message (if any)?

Please share the workflow

(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database you’re using (default: SQLite):
  • Running n8n with the execution process [own(default), main]:
  • Running n8n via [Docker, npm,, desktop app]:

That is a sign that the environment variable WEBHOOK_URL did not get set or not set correctly.

Is generally best to use our Server Setup Guides to make sure that n8n is configured correctly. If it is not, the chance is high that it will not function correctly or may end up being insecure.

Hi @fxholl, in addition to what Jan said, make sure to paste the redirect URL under “Authorized redirect URIs” on the Google page from your screenshot, not “Authorized JavaScript origins” :slight_smile:

1 Like

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