Unauthorized when adding new credentials with OAuth2

Describe the problem/error/question

For the last past month, when adding the Slack and Github nodes (haven’t tried other nodes yet), after following all the steps in the doc, I get an unauthorized answer that opens up in the new pop-up window.

What is the error message (if any)?

In the pop-up window:
https://.railway.app/rest/oauth2-credential/callback?code=7367341133045.7376072410243.938f7f13adae2722d9f10de2d3b4cdd61c83b8278e6809bcae4f6b5f571c299d&state=eyJ0b2tlbiI6IkdRQkEwV1BWLU5YZVRZdkZHVjU1dTdSMkZPOER4dEVJUTNoUSIsImNpZCI6ImdSSDI4SHliTnlFWmNHeDQifQ%3D%3D

I get an:

unauthorized

Information on your n8n setup

  • n8n version: 1.21.1
  • Database (default: SQLite): SQLITE
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker on railway

Hey @falz,

Can you try with a newer version of n8n?

1 Like

Hello, thanks for your answer and help. This fixed my issue.

For further reference, in the new deployed version using railway, the URL callback is actually the custom domain instead of the deployment base URL.

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