lita-slack icon indicating copy to clipboard operation
lita-slack copied to clipboard

Random disconnections from Slack

Open shortdudey123 opened this issue 8 years ago • 4 comments

I am seeing my lita bot randomly drop off of scout. I turned on debug logging and see this. Not sure what other info i can grab to help. Looks like it got a nil event from slack and disconnected

[2016-04-22 18:06:51 UTC] DEBUG: presence_change event received from Slack and will be ignored.
[2016-04-22 18:07:04 UTC] DEBUG:  event received from Slack and will be ignored.
[2016-04-22 18:07:04 UTC] INFO: Disconnected from Slack.

shortdudey123 avatar Apr 22 '16 21:04 shortdudey123

Happened again... any suggestions on things to try?

Might try and dig into the lita-slack code when i have time

[2016-05-25 20:23:19 UTC] DEBUG: presence_change event received from Slack and will be ignored.
[2016-05-25 20:23:21 UTC] DEBUG: presence_change event received from Slack and will be ignored.
[2016-05-25 20:23:35 UTC] DEBUG: reconnect_url event received from Slack and will be ignored.
[2016-05-25 20:24:13 UTC] DEBUG: presence_change event received from Slack and will be ignored.
[2016-05-25 20:24:14 UTC] DEBUG: presence_change event received from Slack and will be ignored.
[2016-05-25 20:24:24 UTC] DEBUG:  event received from Slack and will be ignored.
[2016-05-25 20:24:24 UTC] INFO: Disconnected from Slack.
[2016-05-25 20:24:24 UTC] DEBUG: Closing connection to the Slack Real Time Messaging API.

shortdudey123 avatar May 26 '16 18:05 shortdudey123

Sorry, no specific suggestions off hand. This could be caused by lots of things. Unstable network connection, bugs in lita-slack or websockets, bugs on Slack's side, etc.

jimmycuadra avatar May 27 '16 00:05 jimmycuadra

the nil event seems to be what causes slack to disconnect going to dig in a see if i can add more debug logging to figure out more about what exactly a nil event is

shortdudey123 avatar May 27 '16 05:05 shortdudey123

I have exact the same issue - lita randomly disconnects which makes it useless as i can't constantly restart the process each time it's down (which is aprox. once a day). Is there anything i can do to help you debug that ?

mbajur avatar Aug 04 '18 17:08 mbajur