Access blocked: This app’s request is invalid Error 400: redirect_uri_msmatch

Can you please help with this error code?
Access blocked: This app’s request is invalid
You can’t sign in because this app sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error
If you are a developer of this app, see error details.
Error 400: redirect_uri_mismatch

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

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

@ekhans Which node are you getting this error with?

It looks like you’re getting this error because the service provider linked to one of your nodes is returning the wrong OAuth callback/redirect URL.

In other words, try making sure the OAuth redirect URL you’ve given to your service provider is the same URL n8n is telling you to copy over.

For example (note: this is just to illustrate - the exact solution depends on which node you’re using), if you look at the Google Drive n8n triggers, when you create credentials, there’s this field that shows the OAuth redirect URL:

In order for Google to grant access to the Google Drive API within Google Cloud, we’d have to make sure the same OAuth Redirect URL is added as an Authorized redirect URI:

However, if I were to enter the wrong redirect URI, as in the screenshot below

I would receive this message, matching the error you’re getting:

Does this help?