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
Slackbot is down with java.lang.IllegalStateException: Message will not be sent because the WebSocket session has been closed #190
Comments
And I see that it usually happens at IST night hours 1.00 am ( say currently my slackbot is turning off and on with this web socket issue its ) . @rampatra , can you please suggest a fix to it... |
@lavanyachadga since when are you using JBot? Was it working fine all the time before you reported this bug? If yes, I would like to know any changes you made recently. |
hi @rampatra, thanks for responding. In future, for such websocket connection close issues what is the suggested steps/solutions that has to be taken from my end? Regards, |
Hi @rampatra, actually the bot went down again 2 hours back (after bot being up for 3 days since I saw the toggle issue) with same websocket connection close issue. |
You can modify the frequency here:
in the file: Also, may I ask where are you hosting the bot? Is it a free server like Heroku or something else or is it a paid server? |
Thank you. |
Yes maybe, as the free servers become inactive when there are no requests to the application (even if we have the ping at regular intervals). You can quickly test whether it's an issue with your server by deploying a sample spring-boot application there and see if it goes down after a while if it receives no requests. |
hmm.. ok pods were up and running but yeah will give this a try and check it out. |
I also met this problem before. I tried to wrap the bot class with automatic ping and check if pong comebacks, if there is no pong message back, I make bot reconnect. |
Thanks @kojilin for responding. Will try doing the same if I see the issue again. |
hi, Slack bot is continuously toggles (going on and off) with below error since yesterday. It tries to ping and comes up for some time and then after couple of times it goes down permanently ( never comes up until i deploy the app again) . Could you please look into this websocket issue
The text was updated successfully, but these errors were encountered: