Oauth callback URI still not working on Self-host (Render)

Hi guys,

I have been all over the internet trying to figure out why I am receiving the following redirect error message when trying to create a Google Oauth2 Credential on my self-hosted vm:

I have the following environment variables and google cloud credential settings. Please help!

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hey @Patrick_White

To start with I would remove most of those url env variables the only one you need is WEBHOOK_URL and setting the others could cause problems, also make sure you removed the endpoint env options as some of those are not set correctly.

Once that is done stop and start n8n to make sure they have applied and try the oauth connection again, if it fails again click on “more details” to see if it shows anything else.

Hi @Jon ,

Thanks for the reply I really appreciate it.
Unfortunately I have already tested my environment variables without those additional url env settings, aswel as the endpoint env, and the same problem persists.

Below are my env variables as suggested:

note: i have tried to switch my instance to production by setting NODE_ENV=production and N8N_USE_PROXY=true. This does nothing, and doesnt even seem to change my server into production mode (still a dev label on site).

My google cloud app has been setup internally, and I have tried with and without specifying scopes, and tried adding credentials through Google OAuth2 and through Gmail.

Clicking on the “More Details” Displays nothing underneath - it is an empty dropdown box.

I have also tried running my servers on incognito. Nothing.

Please let me know of any other suggestion you would make. Our team are waiting anxiously for this Oauth Problem to be fixed.

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