-
Notifications
You must be signed in to change notification settings - Fork 627
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
Not allowed token type for Slack connection #964
Comments
Similar issue is happening to me. Tried recreating the bot app and permission set on Slack, to no avail. |
Hi, |
Ok, great news, going to close this now as I can't reproduce it and it works for you. |
@42wim Where can you add bot scope? I have exactly the same problem and here's how it looks for me in Slack app settings:
Throws error:
Interesting is that it gives In Slack channel exists and bot is present in there. Using Docker to run it |
I get the same error as @McSneaky. Also using Docker to run it. I tried adding additional token scopes but it didn't seem to make a difference. |
Our team member finally got it to work. Not really 100% sure how, but here are some pointers what he found: slackapi/node-slack-sdk#921 (comment) and https://github.com/nlopes/slack/issues/654 Those might come handy for others too |
@McSneaky thanks for the feedback, also added in the https://github.com/42wim/matterbridge/wiki/Slack-bot-setup wiki |
Seems like slack changed their permission model, which might require an update from the matterbridge side |
I've added some info that you have to create a CLASSIC slack app to the wiki |
@ForsakenHarmony thanks 👍 |
Right now the regular Slack bot set-up won't work at all, only classic does. Make a bot from scratch following the steps below. I had to go through the following parts of the set-up in this order:
DO NOT do the Legacy Setup steps. You will be using an |
@Souptacular thanks for the feedback, I updated the wiki page about it. |
Followed the instructions above, and it kind of works? Getting the same error, but it is also saying the bridge started (config is correct). Seems strange to me. I went through the steps multiple times with multiple new bots. U am using the "xoxb-" bot token. |
I just went through the process myself and got the same error, it took me a few tries to figure it out. In step 2 of "Create the Classic Slack App" (linked in Souptacular's comment above make sure to use the provided link to create the app, and NOT the "Create App" button. This seems to be the only way to create a legacy app, which will allow you to create a bot user and add the necessary scopes as described. Make sure not to click any of the "upgrade scopes" prompts during the process or it will break - the scopes in the new "granular permissions" system don't seem to work with matterbridge yet |
made it caps and bold in the wiki |
I also get Fun fact: the mattermost messages are posted to slack, but the slack messages can't be posted back to mattermost. |
Hey, with the current implementation, the only to make this work is to create a Slack App through this link: |
Hey guys! Sorry for the intrusion, but as of right now, classic apps are deprecated and there is no way to bridge to and from Slack. |
I have same issue, |
Slack integration is completely unusable right now... |
May i know when integration will be available? |
Describe the bug
I followed the creation of a bot token using : https://github.com/42wim/matterbridge/wiki/Slack-bot-setup
I got a xoxb token as expected however I cannot connect to Slack (via RTM) and it retries endlessly.
Expected behavior
Being connected to Slack.
Environment
matterbridge.toml
[general]
RemoteNickFormat="[{LABEL}] @{NICK}"
TranslationAttribution=" [translated by :google:]"
PreserveThreading=true
ShowUserTyping=false
MediaDownloadSize=1000000
ShowJoinPart=false
NoSendJoinPart=false
IconURL="https://github.com/identicons/{NICK}.png"
[slack]
[slack.myslack]
Token="xoxb-TOKEN"
#RemoteNickFormat="{BRIDGE} - @{NICK}"
PrefixMessagesWithNick=true
Debug=true
[whatsapp.gui]
Number="XXXXXXXXX"
SessionFile="session-48111222333.gob"
RemoteNickFormat="[{PROTOCOL}] @{NICK}: "
[[gateway]]
name="gateway1"
enable=true
[[gateway.inout]]
account="whatsapp.gui"
channel="[email protected]"
[[gateway.inout]]
account="slack.myslack"
channel="test-whatsapp"
Debug output
[2019-12-21T16:41:09+01:00] INFO router: Starting bridge: slack.myslack
[2019-12-21T16:41:09+01:00] INFO slack: Connecting using token
[2019-12-21T16:41:09+01:00] INFO slack: slack.myslack: joining test-whatsapp (ID: test-whatsappslack.myslack)
nlopes/slack2019/12/21 16:41:09 websocket_managed_conn.go:177: Connecting to RTM
nlopes/slack2019/12/21 16:41:09 rtm.go:71: Using URL:
nlopes/slack2019/12/21 16:41:09 websocket_managed_conn.go:181: Failed to start or connect to RTM: not_allowed_token_type
nlopes/slack2019/12/21 16:41:09 websocket_managed_conn.go:147: reconnection 1 failed: not_allowed_token_type reconnecting in 100ms
[2019-12-21T16:41:09+01:00] ERROR slack: Connection failed "not_allowed_token_type" &errors.errorString{s:"not_allowed_token_type"}
[2019-12-21T16:41:09+01:00] INFO main: Gateway(s) started succesfully. Now relaying messages
The text was updated successfully, but these errors were encountered: