When I’m trying to connect my zendesk account I am not able to authorize and I’m getting an error.
Here is the error message
{"code":0,"message":"Cannot read properties of undefined (reading 'globalRole')","hint":"","stack":"TypeError: Cannot read properties of undefined (reading 'globalRole')\n at whereClause (/usr/local/lib/node_modules/n8n/dist/src/CredentialsHelper.js:352:14)\n at Object.getCredentialForUser (/usr/local/lib/node_modules/n8n/dist/src/CredentialsHelper.js:361:16)\n at /usr/local/lib/node_modules/n8n/dist/src/Server.js:1120:45\n at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)\n at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/route.js:137:13)\n at Route.dispatch (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/route.js:112:3)\n at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)\n at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:281:22\n at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:341:12)\n at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:275:10)\n at /usr/local/lib/node_modules/n8n/dist/src/UserManagement/routes/index.js:91:9\n at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:323:13)\n at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:341:12)\n at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:275:10)\n at /usr/local/lib/node_modules/n8n/dist/src/UserManagement/routes/index.js:61:13\n at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:323:13)\n at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:341:12)\n at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:275:10)"}
@Jon After I click on connect my account attached in the screenshot It opens a new tab tells me to sign in to zendesk and then show the error page with the Traceback
That is interesting, We were seeing the other issue as soon as you press connect. I don’t have access to a Zendesk instance to test but I have tagged @MutedJam to see if he can reproduce it.
Thanks all and I’m so sorry for the trouble. I managed to reproduce the problem using the information provided and shall add it to our internal bug tracker for a fix.
I am really sorry to the trouble @Inayet. The team is looking into this and we’ll of course share an update as soon as we have found anything. For the time being you might want to consider rolling back to version 0.167.0. You can do so via the admin panel:
Are you using the User Management feature at all and can you share more information about your usecase (I thought you did somewhere but I can’t see it now)?
Hey @Inayet, the team (kudos to @kik00 here) has now implemented a fix for the behaviour on n8n.cloud. I quickly tested this with a bunch of my own accounts and the Oauth2 process seems to work again as expected for me using v0.168.2.
Would you mind testing this on your end and confirm whether you’re still having trouble here?
We are not currently using the User Management feature.
We are trying to build a solution where n8n is secured with basic auth, but we need the OAuth callback endpoint to be public so that all our users have the access to connect different channels.
Sorry for the late reply and let me know if you need further information