response icon indicating copy to clipboard operation
response copied to clipboard

'channels.invite': user_not_found when creating new Comms Channel

Open Aracki opened this issue 5 years ago • 2 comments

When I create new Comms Channel I am getting following error in logs:

ERROR:response.slack.action_handlers:Error calling Slack API endpoint 'channels.invite': user_not_found

Also, the only user automatically added in that channel is myself (reporter). Not sure if that is related to this error.

Should the bot user also be automatically added to channel?

PS. Thanks for open-sourcing this great tool 🚀

Aracki avatar Jun 03 '20 10:06 Aracki

They're related - the call that's failing is the one to invite the bot to the channel. Things to check:

  • Are you using a bot token (one starting xoxb-...)
  • Is your bot id correct?
  • Do you have all the OAuth scopes as defined in the docs?

evnsio avatar Jun 11 '20 22:06 evnsio

I was using xoxp- token. I think in previous Docs it was stated that it is the one that should be used. Now I have moved to xoxb-.

Improvement when using bot is that now I can call @bot_name help within new channel and it works, but still getting the same error!

Here is the list of OAuth scopes added.

  • app_mentions:read
  • channels:history
  • channels:join
  • channels:manage
  • channels:read
  • chat:write
  • commands
  • pins:read
  • reactions:write
  • users:read
  • users:read.email

Aracki avatar Jun 16 '20 14:06 Aracki