insomniacslk / irc-slack

IRC-to-Slack gateway
BSD 3-Clause "New" or "Revised" License
192 stars 19 forks source link

cannot connect anymore since 2023-09-18 #183

Open martinetd opened 1 year ago

martinetd commented 1 year ago

since yesterday (2023-09-18T20:29:35Z first disconnect), irc-slack has been disconnecting from slack in a loop like a clockwork every 5 minutes: level=warning msg="Disconnected from Slack (intentional: false, cause: signaled)" prefix=ircslack

They must have changed something (expecting a ping or something?) that'll need investigating; I don't have the time to check right now but will look after work unless someone beats me to it.

EDIT: ah, it's just that my client reconnects every 5 minutes -- it just doesn't work at all. I'll try getting a new auth token first, later...

martinetd commented 1 year ago

Getting a fresh auth token/cookie didn't help.

Before investigating futher I'd like to confirm if others are running in the same issue recently? More precisely, my irc client connects and can joins channels, get their members and immediately disconnects without any obvious reason (with the warning I posted earlier on irc-slack logs)

Looking at other similar projects https://github.com/ltworf/localslackirc/pull/426 was made just yesterday and claims "slack changed their authentication and this fixes it" -- just sending the bearer token to the notification websocket, that would probably do it.

I won't have time to look before this weekend, but I'll try to do the same here this weekend on irc-slack and see if this helps. If someone wants to do this first, don't wait for me :)

the-real-ed commented 1 year ago

Before investigating futher I'd like to confirm if others are running in the same issue recently?

I can confirm that I'm also affected by this bug (failure to auth). Authentication failures started within a few hours of your reported timestamp.

However, I'm a matterircd user, which appears to use some auth code from this project, which brought me here.

mcepl commented 3 months ago

Has this been fixed? Did anybody apply the patch suggested in https://github.com/slack-go/slack/issues/1230 to slack-go?

martinetd commented 3 months ago

(I ended up using mautrix-slack instead of trying to fix this further; it's also based on slack-go so I had assumed it wouldn't work but it somehow did and I stopped looking...)

scottro11 commented 2 months ago

I'm not sure when it stopped working for me, but I tried reinstalling it recently. I'm able to add the network and localhost, and it connects and shows all the channels, but then gives a message Unknown MODE flags +i Irssi: Connection lost to localhost

Then it again shows it joining channels and again loses connection with Error handling connection from 127.0.0.1:39162: read tcp 127.0.0.1:6666->127.0.0.1:

I've sort of given up and am using weeslack which works. Whenever it stops working, I've been able to go to irc, and a fix follows within minutes.