-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
error: Response not OK: not_allowed_token_type #584
Comments
As you may be aware, RTM is no longer available for granular-permissions-enabled (= the default) apps. That's the reason you encountered this issue. It's still possible to create a new classic app from this URL. Please refer to the document for details: https://api.slack.com/authentication/migration#classic It would be appreciated if you could understand this. 🙇 |
I’ll give it a go tomorrow thanks for clarifying the issue!
…On Thu, Feb 13, 2020 at 6:22 PM Kazuhiro Sera ***@***.***> wrote:
putting in a token that doesn't have classic bot scope (deprecated)
As you may be aware, RTM is no longer available for
granular-permissions-enabled (= the default) apps. That's the reason you
encountered this issue.
It's still possible to create a new classic app from this URL
<https://api.slack.com/apps?new_classic_app=1>. Please refer to the
document for details:
https://api.slack.com/authentication/migration#classic
It would be appreciated if you could understand this. 🙇
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#584?email_source=notifications&email_token=AAOD5YD2CCTL3YUX4L26CZ3RCXI3BA5CNFSM4KUZFCXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELW7QJY#issuecomment-586020903>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOD5YGFHRWUUEFE56AG46DRCXI3BANCNFSM4KUZFCXA>
.
|
This does work, using the link above. When assigning permissions you need to assign the Scope "bot" and it will warn you about it being deprecated. You also need to create a bot user from the "App Home" page on Slack before you can install to the workspace. |
The docs should be updated to mention you need a classic app for this adapter to work. |
@tg90nor Thanks for your feedback! I will feed your feedback to the team concerned. 🙇 |
Hi, |
@phanisowjanyavutukuri |
@seratch I have created the classic app and installed the app in the workspace with the oauth scope permissions but unable getting the Response not OK: not_allowed_token_type error |
@phanisowjanyavutukuri There are two ways to configure Hubot app for Slack. Both should work fine for you. Setup Hubot integrationSetup a Classic App
|
As my previous comment answered this question, let me close this issue now. Please feel free to reopen if you have something to ask/clarify here. |
@seratch I tried follow your advice but
there is not such scope as bot :\ |
Ok, my bad, used wrong link :) |
for anyone else who stumbles into this edge case, you need to use the following link when creating your app https://api.slack.com/apps?new_classic_app=1 (if you close the "create classic app" popup and then later click the button "create app," you will no longer be creating a classic app) |
Description
Running
HUBOT_SLACK_TOKEN=xoxb-[omitted] ./bin/hubot --adapter slack
results in
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
error: Response not OK: not_allowed_token_type
Reproducible in:
hubot-slack version: 4.7.1
node version: v12.4.0
OS version(s): MacOS 10.15.3
Steps to reproduce:
Expected result:
It to connect to the workspace
Actual result:
fails to connect unsupported token, this works on my other app that has the classic token.
Attachments:
The text was updated successfully, but these errors were encountered: