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

How do I resolve a missing_scope error #285

Open
BermudaLamb opened this issue Dec 1, 2021 · 4 comments
Open

How do I resolve a missing_scope error #285

BermudaLamb opened this issue Dec 1, 2021 · 4 comments

Comments

@BermudaLamb
Copy link

I'm running the example TestingSlackAPI. My command api set up is giving me xoxb token, not an xoxp token. I'm getting the response back missing_scope. How do I resolve this?

@bakester14
Copy link
Contributor

It depends on the missing scope. This is an error from the slack API itself, not from this client. Take a careful look at the OAuth scopes granted to the application.

@danielkornev
Copy link

Hi! I have a similar problem:

I'm building a very simple Slack client embedded into my app. For that, it needs to act on behalf of the user. Therefore, I've created a modern app that has lots of different scopes available (see in the screenshot).

Now, while I can easily post content using SlackTaskClient, I cannot perform lookups for channels and so on.

image

After looking through different docs I've learned about the ConnectAsync() method.

However, it tells me my app is missing rtm:stream scope.

image

Now, this is the scope that is given to old bot apps which take bot token as an input, not the user's one.

What should then I do to let my app to act on behalf of my user?

@danielkornev
Copy link

Aha, so it seems like the problem is this:
https://api.slack.com/changelog/2021-10-rtm-start-to-stop

Apps created after November 2021 won't work with rtm.start API. 🤔

@danielkornev
Copy link

Aha, so the thing is, one can use Conversations instead of Channels. Seems like this PR would make this library's usage much simpler:
#274

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