slack-bot-api icon indicating copy to clipboard operation
slack-bot-api copied to clipboard

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

Open deefofum opened this issue 6 years ago • 13 comments

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

deefofum avatar Jan 24 '20 14:01 deefofum

I'm getting this error too

adrientremblay avatar Jan 26 '20 12:01 adrientremblay

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

dorman99 avatar Jan 27 '20 18:01 dorman99

Same here too!

bhuvana-guna avatar Jan 28 '20 21:01 bhuvana-guna

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

kilmajster avatar Jan 29 '20 09:01 kilmajster

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

sujansonly avatar Feb 01 '20 22:02 sujansonly

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

leisar21 avatar Feb 17 '20 15:02 leisar21

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!

blomqvistandreas avatar Feb 18 '20 19:02 blomqvistandreas

same here! =/

ivoneijr avatar Mar 20 '20 21:03 ivoneijr

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 avatar Apr 03 '20 21:04 baob

Still hoping for a solution, but workaround is summarised here https://github.com/mishk0/slack-bot-api/issues/147#issuecomment-610832632

baob avatar Apr 08 '20 08:04 baob

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

AugustBemsen avatar Oct 15 '20 04:10 AugustBemsen

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/

esbenvb avatar Mar 21 '22 07:03 esbenvb

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

webdevelopland avatar Mar 21 '22 23:03 webdevelopland