Not able to login to google gmail on N*n using docker

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:**1.91.3
  • **Database (default: SQLite):sqlite
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):own
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
  • **Operating system:mac IOS
1 Like

Hi, is this step happening when you try to configure a new n8n credential for Google (after having entered your client ID/Secret that you received from your google cloud project &client activation, and finally validating the n8n credential with the “SignIn with Google” button)?
The n8n Google oAuth doc is quite explicit.

N.B.: if you don’t publish your googleCloud on purpose created application, it stays under the “Test” status. If so don’t forget to add your Google account as a Test User (in the [audience] menu of your googleCloup Project API&Serivces/Client configuration cf. https://console.cloud.google.com/auth/audience)

1 Like

still same issue i dont know what to do i try every thing i can

1 Like

Can you please tell us a bit more on what exact action you get that message and if it is generated on a node execution or when validating your n8n credential for accessing google?

As from your answer you did try everything, so you confirm that you have:

  • a google cloud project
  • with a validated OAuth 2.0 Client (so you have your client ID and client secret)
  • a configured OAuth consent screen
  • In n8n you did create a credential for accessing google API that you have tested and validated activating the “SignIn with Google” button in the n8n credential configuration screen.

If theses steps have been followed, without error where do you get the error?

1 Like

inside n8n the url is shown to me as below

Improved-cowbird-touched.ngrok-free.app/rest/oauth2-credential/callback
without https://

1 Like

seems it’s not finding the client you created, id look further into that side, maybe even try create it again

i am receving this error now

Ah I see now, was using mobile.i believe you likely need to set your webhook url and not use localhost @Yosry_Ali

THIS IS MY CURREBT ERROR NOW

So to confirm, which env vars are you using? It seems u have ngrok, so which URL do you access the GUI from (confirm its not localhost), and which URLs do you see on the webhook node?

In essence, you need these, it would appear inside your composer file:


You can either place actual values in the .env file or docker-composer
environment:
- N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
- WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/

Or you can just add to you host if not using dockers using export etc.

Hopefully that fixes it.