xenial-black
xenial-black3mo ago

Slack Oauth Error

Hi I'd love to get some help from setting my own Slack App for integration. I've added all bot and user scopes but still got this error while authenticating: { "name": "Internal Server Error", "message": ""user_scopes.join is not a function"", "stack": "TypeError: user_scopes.join is not a function\n at AuthAppService.getRedirectUrlForOAuth2 (/hermes/apps/hermes/output/webpack:/schedule-queue/src/resources/auth-apps/service.ts:187:68)\n at AuthAppService.getOAuth2RedirectUrl (/hermes/apps/hermes/output/webpack:/schedule-queue/src/resources/auth-apps/service.ts:66:40)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at ConnectionsController.initiateConnection (/hermes/apps/hermes/output/webpack:/schedule-queue/src/resources/connections/controller.ts:266:37)" }
No description
No description
7 Replies
xenial-black
xenial-blackOP3mo ago
And I am using the default scopes set up in Composio: channels:history,chat:write,chat:write,team:read,channels:read,users:read,reminders:write,search:read,reactions:read
wise-white
wise-white3mo ago
Are you using javascript??
xenial-black
xenial-blackOP3mo ago
I am using python, the issue is resolved by adding user_scopes in connected_account_params paramter
No description
xenial-black
xenial-blackOP3mo ago
@thatsmeadarsh I have another issue, when I use the Composio Slack app for sending messge, why it is always sending on behalf of my user name? I want it to be send under an App or a bot
xenial-black
xenial-blackOP3mo ago
And if I set "as_user" as false, I will have an error
No description
Soham
Soham3mo ago
Can you please use slackbot app. There are two ways to integrate with slack, 1 as a user and 1 as a bot. @Lewis https://app.composio.dev/app/slackbot The issue is they both use different auth tokens and so we created them as sep app.
wise-white
wise-white2mo ago
Hey @Lewis, is your issue solved??

Did you find this page helpful?