Slack API returned an error invalid_auth
vishal-h opened this issue · 0 comments
vishal-h commented
Following the example in https://github.com/BlakeWilliams/Elixir-Slack#real-time-messaging-rtm-bot-usage
Slack.Bot.start_link(SlackRtm, [], "xoxb-some-token") gives the error
{:error, "Slack API returned an error `invalid_auth.\n Response: {\"ok\":false,\"error\":\"invalid_auth\"}"}
The same token works fine when tested with kino_slack or
POST https://slack.com/api/chat.postMessage
Content-type: application/json
Authorization: Bearer xoxb-some-token
{
"channel": "some-channel",
"text": "Hello world :handshake:"
}