slackbotapi icon indicating copy to clipboard operation
slackbotapi copied to clipboard

No timeout on connection or reconnection

Open mledford opened this issue 8 years ago • 3 comments

When there is a network problem it appears that no timeout occurs. This prevents being able to reconnect.

mledford avatar Nov 19 '15 18:11 mledford

I'm also not seeing my bot reconnect if the network connection drops

jsonfry avatar Nov 27 '15 11:11 jsonfry

I'm having the same issue. I loose the network connection for a brief period at night, and the bot never reconnects.

chrisfulp avatar Feb 27 '16 20:02 chrisfulp

Having this as well in our production environment (happens every few months or so).

2017-04-29 05:04:43 Error: not opened at WebSocket.send (/srv/Karma-Mobile-API/node_modules/ws/lib/WebSocket.js:219:16) at slackAPI.sendSock (/srv/Karma-Mobile-API/node_modules/slackbotapi/lib/index.js:127:17)

Related: https://github.com/websockets/ws/issues/337

mattisx avatar Apr 29 '17 05:04 mattisx