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

Slack API returned an error invalid_auth #261

Open
vishal-h opened this issue Dec 3, 2023 · 0 comments
Open

Slack API returned an error invalid_auth #261

vishal-h opened this issue Dec 3, 2023 · 0 comments

Comments

@vishal-h
Copy link

vishal-h commented Dec 3, 2023

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:"
}
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

1 participant