-
Notifications
You must be signed in to change notification settings - Fork 835
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
Random websocket connection closed errors #171
Comments
Hello, does anyone have any comments or suggestions for me to try? Thank you in advance for your time reviewing this new issue. It could relate to issue #118. |
I think I also have seen this.
|
I also have reconnect logic as well (that will sleep X amount of time, then reconnect, and repeat...) |
I experienced the same problem. |
this indeed seems like a duplicate of #118, which has a bit more data about the problem. I'm going to close this issue as a dup, but if you feel like there's something unique going on here that we should know about, feel free to comment. |
In my case:
|
Same for me ... 0.54.0 working, |
Same issue here. Downgrading websocket-client from 0.55 to 0.54 solved the problem. |
Thanks for everyone reporting the issue! I've addressed this with a patch for now: #387 I'm going to continue digging into solving the root cause in websocket-client. |
Description
I am running a Python script in a Windows server machine to use the Slack RTM API to listen on new incoming messages addressed to a bot. Based on the message, I write back to the Slack channel where the question was asked.
Unfortunately, the websocket used by RTM API is randomly getting closed, forcing me to come up with a workaround where I have to call slack_client.rtm_connect() in my except block to re-connect.
This is causing two issues:
I don't see a reason why the websocket is getting closed
After reconnecting multiple times, the Python script stops listening to messages directed to my bot, forcing me to restart the Python script manually.
Reproducible in:
python-slackclient version: 0.3.0
Python Version: 2.7
OS Version: Windows Server 2012 R2
Steps to reproduce:
Expected result:
Actual result:
Attachments:
Sample Python script
sample.py.zip
The text was updated successfully, but these errors were encountered: