Hi,
I’m encountering an “Error 400: invalid_scope” when trying to connect Gmail with my n8n Cloud instance using OAuth2. Here are the details:
- My n8n instance is hosted on the cloud:
https://*************.app.n8n.cloud
. - The Google app is in Test mode, and I’ve added my email as a test user.
- The scopes I’m using are:
https://www.googleapis.com/auth/gmail.readonly
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.labels
https://www.googleapis.com/auth/gmail.send
I am a new Born in this world!
I just start yesterday on n8n the idea is to sorting all my unread mail , almost 10000 , I know I know !!!
I think I correctly configured the scopes and the redirect URI (https://***************.app.n8n.cloud/rest/oauth2-credential/callback
),
and I’m receiving an invalid_scope error when attempting to authorize Gmail via n8n.
- The scopes are listed in the OAuth consent screen configuration.
- The Gmail API is enabled in the Google Cloud Console.
- My email is added as a test user.
how I can fix this issue?
Thanks in advance for your help!