[!Urgent - Github Bug] GitHub OAuth2 Broken on n8n v 0.192.2

Describe the issue/error/question

Hi guys have just updated to the latest version of n8n (0.192.2), and the OAuth2 redirect URL seems to be broken. I have never had this issue before, and as soon as the update was completed, all flows are down.

What is the error message (if any)?

  1. Github nodes fail
  2. When trying to re-authenticate OAuth2, getting the following error:
{"code":0,"message":"Insufficient parameters for OAuth2 callback. Received following query parameters: {\"error\":\"redirect_uri_mismatch\",\"error_description\":\"The redirect_uri MUST match the registered callback URL for this application.\",\"error_uri\":\"https://docs.github.com/apps/managing-oauth-apps/troubleshooting-authorization-request-errors/#redirect-uri-mismatch\",\"state\":\"#removed#=\"}","hint":""}

Despite the Callback URL in Github being identical to what is required by n8n (was working as expected right before the update)

Information on your n8n setup

  • n8n version: 0.192.2
  • Database you’re using (default: SQLite): SQLite
  • Running n8n with the execution process [own(default), main]: own
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: Docker (DigitalOcean)

Hey @pb84,

As a quick test could you set N8N_EDITOR_BASE_URL to match your host environment variable to see if that solves the issue for you?

Hi @pb84, just a quick note to let you know that I was able to reproduce this problem and have reached out to the engineer working on this.

I could, however, only reproduce this on [email protected] which is the version introducing a new OAuth2 behaviour. Downgrading to 0.192 again solved the issue for me. Were you by any chance testing this on 0.193 @pb84? If so, you might want to downgrade again until this issue is fixed.


Hi @Jon and @MutedJam - yep above is corrected, I’ve downgraded to 193 for now to resolve the issue

1 Like

Thanks for confirming! From testing I hope the underlying issue won’t be too hard to fix. It seems n8n simply omits a slash in the redirect URL it sends to Github.

Hello @pb84 thank you for reporting.

We have created a hotfix and a new release is on the way.

You can follow on Fix missing slash in oauth2 urls by krynble · Pull Request #3991 · n8n-io/n8n · GitHub

Once released, a new comment stating the version number should be seen on that page.

1 Like

The fix has now been released with [email protected].