We’re currently encountering a persistent “Not Found” error when attempting to authorize OAuth-based credentials for services such as X (Twitter), LinkedIn, Google, and Facebook on our self-hosted n8n instance.
Upon further inspection, we noticed that the n8n account URL we’re using is:
https://n8n-[xxxx].onrender.com/
However, the OAuth Redirect URL configured in the developer apps is pointing to a different instance:
https://n8n-[yyyy].onrender.com/rest/oauth2-credential/callback
This mismatch appears to be the likely cause of the issue, as the callback URL must exactly match the instance where the authorization is initiated. We’ve verified client IDs, secrets, scopes, and even recreated the apps and credentials multiple times without success.
If anyone has encountered this before or has recommendations on resolving this redirect mismatch on Render-hosted n8n deployments, your insights would be greatly appreciated.
