-
Notifications
You must be signed in to change notification settings - Fork 838
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
Periodic connection loss, not reconnecting #336
Comments
Same here but with Python 2.7.15
And another one
|
@ses4j we can definitely add We're always up merging for incoming PRs, and I feel like this is a pretty good first PR. |
@Roach I could take this up if need be. My connection is resetting every night around midnight so my bot is missing things until I can restart my code each morning. Definitely willing to have this be my first PR to the project if you haven't already started working on it. |
@jtsmith2 that would be awesome! We'd love the help. Take a look through the contributing guide: https://github.com/slackapi/python-slackclient/blob/master/.github/contributing.md |
facing the same issue :
|
Also experiencing this issue, is there any guesses when it might be addressed? I saw an open PR for it by @jtsmith2 but it doesn't seem to have any traction |
same here. I see this with python 3.5.2, 3.5.6, 3.6.8 under pyenv on centos 7 and 3.5.2 in ubuntu 16.04. The more the server is load will cause to happen sooner. I have the bot auto reconnect ( i see the event [{'type': 'hello'}]) but after 5 of these it bails.
|
Does anyone encounter this issue with v2.x series? If not, please allow me to close this issue after waiting for responses for a few weeks. We're no longer actively working on the v1.x series. We appreciate your understanding. 🙇 |
As this project hasn't been actively supporting v1 for a while, please allow us to close this issue now. The current latest stable version is v2.9.3. Here is the migration guide to v2 series. Also, we're going to release v3 soon: https://slack.dev/python-slack-sdk/ Both newer major versions should provide more stable implementation for this use case. It'd be appreciated if you could try newer versions. We hope the newer version resolves your issue. |
Description
Similar to #118 and #101, we occasionally see a
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
crash. The exception is thrown out of lib/ssl.py, but the last spot in slackclient is https://github.com/slackapi/python-slackclient/blob/master/slackclient/server.py#L264.Is there any reason autoreconnect reconnects after a
WebSocketConnectionClosedException
but not aConnectionResetError
? Maybe it could just be added?What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
slackclient version: Sorry, not sure, but modern enough to have the same exact line number for the crashing lines. I'm reporting this secondhand.
python version: 3.5
OS version(s): Windows (I think)
Steps to reproduce:
Expected result:
Try to reconnect indefinitely if the connection bombs out.
Actual result:
Crash with ConnectionResetError.
Attachments:
The text was updated successfully, but these errors were encountered: