Error 400: invalid_scope when setting up OAuth2 for Gmail

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:

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!

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hey @kerboubou84

Welcome to the community :raised_hands:

You shouldn’t need to make an app in Google if you are using GMail on cloud just open the node, add a credential and the only option should be a sign in with Google button, if you press that it should just work.

If you don’t see the button and you have other options I would recommend updating your instance to a newer version and seeing if that fixes it.

1 Like

thanks a lot for your response Jon I will try that ! thanks again !

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