Good afternoon! How are they? I am new to the community and the truth is that the application is incredible, congratulations!
I had a query regarding the OAuth Redirect URI with Gmail.
I have installed n8n with docker-compose on a server, I already put DNS and IP Static on it.
I would like to know how I can configure the Redirect part to connect it with the Google Apps since the callback throws me localhost and google does not allow me.
Invalid Redirect: must end with a public top-level domain (such as .com or .org).
And in WEBHOOK_URL, which one would you place? because in the .env file I have the local domain in DOMAIN_NAME, how would I redirect that WEBHOOK to the local domain?Excuse my ignorance
with docker compose I couldn’t initialize it, but with the command worked:
docker run -it --rm
–name n8n
-p 5678:5678
-v ~/.n8n:/home/node/.n8n
n8nio/n8n
The problem is that now after a certain time in AWS it appears “Connection Lost” in the Workflow and it does not reconnect
I made a change and installed n8n in k8s and I no longer have the problem that it disconnects me, but I am having a problem that, for example, when I configure the gmail workflow when accepting the scopes, it throws me an error, and the webhook was also added in google platform.
That looks like it is going to be a network issue. When you access n8n do you use https://n8n.domain_name:5678 or something else? I suspect it is going to be an environment option that isn’t set like the webhook url.
There, configure the URL with https without the port and with the variables domain, subdomain, host and webhook url and it worked perfectly for me.
Thanks u so much!!
Put the debug logs on and no error reported at all…
{"level":"verbose","message":"OAuth2 authentication successful for new credential","metadata":{"credentialId":"1","file":"oauth2Credential.api.js","timestamp":"2022-12-04T23:19:19.206Z","userId":"4fcad76a-10c9-43fa-af6e-d3003a449a19"}}
No need for a Github issue, I suspect there is something else missing in the request. This thread looks like it was related to Google on an older version of n8n and I assume you are using a newer version and you have a different error message so it would be worth opening a new thread and filling out the template provided.