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

The start_rtm.rs returns "missing scope" #77

Open
cedric-h opened this issue Sep 17, 2019 · 8 comments
Open

The start_rtm.rs returns "missing scope" #77

cedric-h opened this issue Sep 17, 2019 · 8 comments

Comments

@cedric-h
Copy link

That example would be a really great jumping off point, but I'm not sure which permissions I need to give it. Right now I'm giving it:

channels:history, channels:read, chat:write:user, im:history, im:read

But apparently more, or different ones are needed?

Thanks!

@dten
Copy link
Contributor

dten commented Sep 17, 2019

That's odd. Perhaps something had changed but my app only has the slash command permission. Hmmm

@dten
Copy link
Contributor

dten commented Sep 17, 2019

It does seem some things have changed.

This page implies you need a bot type token with the scope bot
https://api.slack.com/methods/rtm.connect

@ccakes
Copy link

ccakes commented May 13, 2020

Ever get this resolved? Having the same issue

@dten
Copy link
Contributor

dten commented May 13, 2020

Do you have the scopes required according to the docs?

@ccakes
Copy link

ccakes commented May 13, 2020

Ended up getting this resolved. The crate docs don't contain anything about how to set up a valid RTM token and the way through legacy bot tokens etc via the Slack API portal is a bit of an average user experience.

@dten
Copy link
Contributor

dten commented May 13, 2020

For how slack works you should read the slack docs https://api.slack.com/rtm they change a lot and it would be impossible for the docs.rs docs to mirror them.
For rtm Slack expects you to use the oauth flow and not a tester token. in fact they're soon removing the creation of test tokens. https://api.slack.com/legacy/oauth
New slack apps can't use rtm at all and i'm a little worried they're going to kill it

@dten
Copy link
Contributor

dten commented May 13, 2020

I'll try and make the docs link to related places though

@ccakes
Copy link

ccakes commented May 14, 2020

New slack apps can't use rtm at all and i'm a little worried they're going to kill it

Same. Sorry didn't meant to come across as though I thought it was a crate doc problem, the Slack docs themselves are lacking. When I was Googling the error messages I found a lot of Python and JS devs with the same problem

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

3 participants