Tokens created with Slack’s new granular permissions generate a `not_allowed_token_type` error.
Using tokens I’ve generated before Slack’s new permissions were rolled out still work fine.
I'm getting this error too
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
Same here too!
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. that link helped to solve this issue! not_allowed_token_type fixed
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
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!
same here! =/
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.
Still hoping for a solution, but workaround is summarised here https://github.com/mishk0/slack-bot-api/issues/147#issuecomment-610832632
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
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/
This one works good:
https://www.npmjs.com/package/@slack/web-api