Reputation: 3095
trying to upload a file from a build server following the doc: https://api.slack.com/methods/files.upload
And also using bot token: https://api.slack.com/authentication/basics
I am getting the error: {"ok":false,"error":"not_in_channel"}
Appreciate any help and pointers!
Upvotes: 2
Views: 3030
Reputation: 1446
This error occurs when a bot oauth token is used and the bot isn't in the target channel(s).
To fix:
/invite @BOT_NAME
Upvotes: 6