Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Aracki opened this issue Jun 3, 2020 · 2 comments
Open

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

Aracki opened this issue Jun 3, 2020 · 2 comments

Comments

@Aracki
Copy link

Aracki commented Jun 3, 2020

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 🚀

@evnsio
Copy link
Contributor

evnsio commented Jun 11, 2020

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?

@Aracki
Copy link
Author

Aracki commented Jun 16, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants