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

Tokens created with Slack’s new granular permissions generate a not_allowed_token_type error. #145

Open
dfjson opened this issue Jan 24, 2020 · 13 comments

Comments

@dfjson
Copy link

dfjson commented Jan 24, 2020

Using tokens I’ve generated before Slack’s new permissions were rolled out still work fine.

@adrientremblay
Copy link

I'm getting this error too

@dorman99
Copy link

me too, iam new for using this package. just follow the instruction, but get error while create new bot.

is this the right token for the bot? xoxb-xxxx-xxxx-xxxx-xxxx

@bhuvana-guna
Copy link

Same here too!

@kilmajster
Copy link

kilmajster commented Jan 29, 2020

There is still a possibility to generate correct token - https://api.slack.com/apps?new_classic_app=1 and then in Bots you can add legacy bot user and generate correct token

@sujansonly
Copy link

kilmajster. that link helped to solve this issue! not_allowed_token_type fixed

@leisar21
Copy link

leisar21 commented Feb 17, 2020

There is still a possibility to generate correct token - https://api.slack.com/apps?new_classic_app=1 and then in Bots you can add legacy bot user and generate correct token

At the end of 2020 Feb, Slack will finally end support deprecated token so soon this solution will be not relevant

@blomqvistandreas
Copy link

I get this error aswell, I tried using the demo code with all possible API keys on the website. Still without success. A solution to this would be cool!

@ivoneijr
Copy link

same here! =/

@baob
Copy link

baob commented Apr 3, 2020

At the end of 2020 Feb, Slack will finally end support deprecated token so soon this solution will be not relevant

I've been caught out by this ... hoping for a solution soon.

baob added a commit to baob/sandbox-slackbot that referenced this issue Apr 3, 2020
@baob
Copy link

baob commented Apr 8, 2020

Still hoping for a solution, but workaround is summarised here #147 (comment)

@AugustBemsen
Copy link

There is still a possibility to generate correct token - https://api.slack.com/apps?new_classic_app=1 and then in Bots you can add legacy bot user and generate correct token

This was helpful, thanks alot

@esbenvb
Copy link

esbenvb commented Mar 21, 2022

To anyone coming here:

The tutorial on freecodecamp is based on obsolete Slack APIs and a module that's not supporting the recent versions.

I just wasted time on this module and tutorial as well, it should have an "Unsupported" disclamer in top, IMO.

However, I made something work with Slack's own bolt API.

https://blog.logrocket.com/build-a-slackbot-in-node-js-with-slacks-bolt-api/

@webdevelopland
Copy link

This one works good:
https://www.npmjs.com/package/@slack/web-api

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