I’m having an issue with connecting to a GitHub OAuth2 API Credential after updating to the latest version of n8n (I’m not sure what version I was on before, but it was a couple months old).
When clicking “Connect my account”, I get the following error:
OAuth Authorization Error
There was a problem generating the authorization URL Cannot read properties of undefined (reading ‘globalRole’)
I’ve tried creating a new OAuth app on GitHub, but that didn’t help.
Yes, that’s the same error. Yesterday I was testing and that didn’t happen, the problem had begin when I updated the n8n docker image. I’ll test to see if the error is in the other server…I’ll return soon.
The problem continue in the other server too…I also tried remove traefik, proxy configuration, WEBHOOK_URL and N8N_USE_DEPRECATED_REQUEST_LIB without sucessfull.
I have managed to reproduce the same issue here using the Github oauth option, It looks like the twitter oauth process is ok so this will need some more digging.
From what I can see that version is running on 133 which is really old now, I suspect this change has something to do with the new user management feature but we will need to dig into it more.
Sounds great, thanks @Jon. I rollback to version 0.167.0, I noted that have a new version 0.168.2 but I can’t updated yet…I’ll try late. Thanks for your help.
@Jon@jan I am also facing the same problem with the OAuth redirect with zendesk
it works on previous versions (0.167.0) but not the new ones (0.168.2 or 0.169.0)
It might be worth opening a new thread for this one as the issue for the Github node has been resolved. Are you also able to share the error you are getting? A quick test using the same method that failed for the Github node before appears to be working for me here.