Google Drive OAuth Error

Describe the problem/error/question

Hi, I wanted to create an OAuth2 credential for Google Drive, however I cannot sign in and only have the error below. Some months ago the Google OAuth stuff worked… Can anyone help me? Thanks in advance :slight_smile:

Information on your n8n setup

Latest n8n version running via Docker on a raspberry pi.

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:

Most common cause for this error is when the URLs don’t match in the google settings.
I think if you click that link they give you it will tell you what the specific issue is

How are you exposing your pi to the internet? Has anything changed between when you first set it up to now?

I haven’t really touched anything :confused:

Could it be a problem with my SSL certificate? I’m extremely dumb at these topics… I’ve always accessed my n8n over https and that still works. Though my traefik container has always been sending error messages regarding the certificates. I hope I managed to fix that now, as I set it to dnschallenge (as the previous setting was somehow conflicting with Cloudflare).

The two links in the error message lead me to these:

it looks like you might be missing the https:// in your env variables.

Go to your docker container and set the N8N_EDITOR_BASE_URL and WEBHOOK_URL to be your full url including https:// and restart your container.

If you have that make sure it’s also set to that in your google api console

2 Likes

Oh my god, thank you :heart: That fixed it! Google always forces you to include the https://, while the environment variables are documented without the https:// if I remember correctly.

Thanks again and have a great day :slight_smile:

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