Gmail OAuth2 API is failing

I am facing issue when using the google OAuth2, and tries to connect a gmail to send emails, despite keeping correct secret key and redirect url in google console, still it fails to connect with gmail account and fails again and again, on all retries.

What kind of troubleshooting can help here.

2 Likes

I do have added the users in test user, and redirect url is perfectly matched and same thing was working earlier. i believe there was some update in redirect url, it got updated and added it to google console where needed.

now, on auth, it lets me select the gmail user i wanna add, continue to it, and then ask for allowed permissions, and i do all these as i usually did. but then this screen keeps on loading and fails like troubleshooting issues and keeps on retrying itself.

The token URI is now as following, which I have updated on google cloud console as well.

https://{domain}:{port}/rest/oauth2-credential/callback

On auth consent screen, it asks for all the permissions to give and then it gets stuck in loading state, where the same request on this redirect URL is failing again and again. It was working well before, when the URI you mentioned, was there. In recent update it is updated, I believe.

It fails with following, without any error in response:
β€œβ€β€œβ€# Hmmm… can’t reach this page

n8n.{mydomain}.com took too long to respond"β€œβ€"
How can this issue be resolved.

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