matrix-org / matrix-appservice-slack

A Matrix <--> Slack bridge
Apache License 2.0
275 stars 72 forks source link

Riot_Bridge broken when App removed and re-installed #413

Open hlesueur opened 4 years ago

hlesueur commented 4 years ago

Hello, I had a properly set riot-slack bridge, configured with the slack integration from riot (except pupetting did not work) I tried rebuilding the whole from scratch, so I unlinked the slack_integration bot in riot and removed the riot_bridge app in slack Then set it back again

BUT I could no longer relay messages from slack to matrix (the reverse matrix => slack was working)

After struggling a bit, I found out that the riot_bridge bot was appearing as 'away' in slack (with the empty circle, when you do a one-to-one chat) ... Which may obvisouly be a reason for it not to relay messages (it was having some beach holidays somewhere out of confinement...)

So I tortured it (and myself), after struggling (again!) I found a way to set it back to 'present' Slack has a lot of documentation about their scripts. One page is dedicated to set bot presence, user presence https://api.slack.com/methods/users.setPresence From within you can test it, for yourself or for another one using a token. (so you need your app's token !)

Although I'm not 100% sure the following steps are the ones which brought riot_bridge back, here are they:

Slack throwed an internal error but the doc tells you that it comes from slack side and that your action may have worked before the internal error... I looked and the bot was green again... (and the bridge back to work in both ways)

s-zymon commented 4 years ago

@hlesueur Similar problem here. Unfortunately, it does not work for me.

One difference, the token that give me something different than error: "invalid_auth" has following format:

xoxb-(13digits)-(theRest)

Using token format as I mention I got similar response:

{ "ok": false, "error": "internal_error" }

but the riot_bridge in the slack workspace is still away.

hlesueur commented 3 years ago

I had the same problem again, same symptoms :

but now indeed, as @zymone I cannot find the proper token (I always get an "invalid_auth") Can anyone provide a way to get the right token? (maybe there is still another problem on top of that but at least so that I can try to re activate the bot inside slack)

Thanks for your help !

eganonoa commented 2 years ago

We are having the same problem here. Has anyone been able to figure this out?

7saikat7 commented 2 years ago

Same issue ....