monzo / response

Monzo's real-time incident response and reporting tool ⚡️
MIT License
1.52k stars 165 forks source link

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

Open Aracki opened 4 years ago

Aracki commented 4 years ago

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 commented 4 years ago

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

Aracki commented 4 years ago

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.