Unable to connect to Google Drive -404

Describe the problem/error/question

Hi i am having installed community version run on ubuntu docker

when i try to connect to Google drive. All credentials work. Api Key also . It enables to choose google account which i want to connect and when confirming connect it fails.

Developer account for project on Google Console created also

Docker confg as follows

docker run -d --name n8n
-p 5678:5678
-e N8N_BASIC_AUTH_ACTIVE=true
-e N8N_BASIC_AUTH_USER=username
-e N8N_BASIC_AUTH_PASSWORD=password
-e N8N_HOST=spotmeup.xyz
-e N8N_PORT=5678
-e WEBHOOK_URL=https://spotmeup.xyz
-e N8N_PUSH_BACKEND=websocket
-e N8N_PROXY_HOPS=1
-e GENERIC_TIMEZONE=UTC
-v ~/.n8n:/home/node/.n8n
n8nio/n8n

nginx config as blow

server {
server_name spotmeup.xyz;
location / {
proxy_pass http://localhost:5678; # Forward requests to n8n
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1; # Required for WebSocket
proxy_set_header Upgrade $http_upgrade; # Required for WebSocket
proxy_set_header Connection “upgrade”; # Required for WebSocket
}
listen 80;
}

What is the error message (if any)?

Please share your workflow


Share the output returned by the last node

Information on your n8n setup

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

Hey @Markus_Markus ! Hope you are doing great!

Just to doble-check, Did you enabled the Google Drive API from your Google Cloud console?

Happy to read your comments!

1 Like

Thanks i have recereated nginx config and it worked with support of gemini. Reviewed all configuration scratched and started once again. it did not work on domain level looks like google is adding somewhere www do domain so i created all config on subdomain with www and it worked.

1 Like