I’m facing an issue while trying to set up Google OAuth2 credentials in n8n.
Setup Details:
- I’m self-hosting the latest n8n Docker image on AWS EC2 instance
- Im using a custom domain from namecheap.
- I’ve followed the official documentation and multiple tutorials to set up Google OAuth2 credentials.
- My OAuth Redirect URL in the Google Cloud Console is set to:
(http://localhost:5678/rest/oauth2-credential/callback)
The Problem
When I enter my Client ID and Client Secret in the n8n Google Calendar OAuth2 API node and proceed to sign in to my Google account, I:
- Select my Google account.
- Grant all the required permissions.
- Click “Allow.”
I’m taken to a page with the following error:
This site can’t be reached localhost refused to connect. ERR_CONNECTION_REFUSED
