Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

not_allowed_token_type error when booting app #241

@jillguyonnet

Description

@jillguyonnet

Hi there,

I've had a working bot/app for a while, passed a SLACK_API_TOKEN env var with the bot user token, and just ran into the following issue today after changing some settings (scopes) in the Slack app (in api.slack.com/apps). From the Ruby app logs when trying to start the app:

ERROR -- : not_allowed_token_type (Slack::Web::Api::Errors::SlackError)
/bundle/gems/slack-ruby-client-0.14.5/lib/slack/web/faraday/response/raise_error.rb:13:in `on_complete'
/bundle/gems/faraday-0.17.3/lib/faraday/response.rb:9:in `block in call'
/bundle/gems/faraday-0.17.3/lib/faraday/response.rb:61:in `on_complete'
/bundle/gems/faraday-0.17.3/lib/faraday/response.rb:8:in `call'
/bundle/gems/faraday-0.17.3/lib/faraday/response.rb:8:in `call'
/bundle/gems/faraday-0.17.3/lib/faraday/request/url_encoded.rb:15:in `call'
/bundle/gems/faraday-0.17.3/lib/faraday/request/multipart.rb:15:in `call'
/bundle/gems/faraday-0.17.3/lib/faraday/rack_builder.rb:143:in `build_response'
/bundle/gems/faraday-0.17.3/lib/faraday/connection.rb:387:in `run_request'
/bundle/gems/faraday-0.17.3/lib/faraday/connection.rb:175:in `post'
/bundle/gems/slack-ruby-client-0.14.5/lib/slack/web/faraday/request.rb:26:in `request'
/bundle/gems/slack-ruby-client-0.14.5/lib/slack/web/faraday/request.rb:11:in `post'
/bundle/gems/slack-ruby-client-0.14.5/lib/slack/web/api/endpoints/rtm.rb:42:in `rtm_start'
/bundle/gems/slack-ruby-client-0.14.5/lib/slack/real_time/client.rb:179:in `build_socket'
/bundle/gems/slack-ruby-client-0.14.5/lib/slack/real_time/client.rb:51:in `start!'
/bundle/gems/slack-ruby-bot-0.12.0/lib/slack-ruby-bot/server.rb:35:in `start!'
/bundle/gems/slack-ruby-bot-0.12.0/lib/slack-ruby-bot/server.rb:29:in `block (2 levels) in run'
/bundle/gems/slack-ruby-bot-0.12.0/lib/slack-ruby-bot/server.rb:49:in `handle_exceptions'
/bundle/gems/slack-ruby-bot-0.12.0/lib/slack-ruby-bot/server.rb:27:in `block in run'
/bundle/gems/slack-ruby-bot-0.12.0/lib/slack-ruby-bot/server.rb:26:in `loop'
/bundle/gems/slack-ruby-bot-0.12.0/lib/slack-ruby-bot/server.rb:26:in `run'
/bundle/gems/slack-ruby-bot-0.12.0/lib/slack-ruby-bot/bot.rb:6:in `run'
config.ru:10:in `block (2 levels) in <main>'

I've tried reinstalling/recreating the Slack app, updating gems, no dice. Is it possible that SLACK_API_TOKEN is no longer sufficient as a token?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions