You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is a connection issue the returned exception is confusing. Shouldn't the exception say something like server isn't available, or connection failed? I'm currently using version 4.6.0. If you try to use the client to connect to a bogus socket server like http://google.com, you should see the same exception I am seeing.
The text was updated successfully, but these errors were encountered:
Oh, this is odd, I wasn't aware of this. Okay, I'm going to fix it so that you get the intended exception, which should be this:
Traceback (most recent call last):
File "client.py", line 18, in <module>
sio.connect('http://google.com')
File "socketio/client.py", line 286, in connect
six.raise_from(exceptions.ConnectionError(exc.args[0]), None)
File "<string>", line 3, in raise_from
socketio.exceptions.ConnectionError: Unexpected status code 404 in server response
When there is a connection issue the returned exception is confusing. Shouldn't the exception say something like server isn't available, or connection failed? I'm currently using version 4.6.0. If you try to use the client to connect to a bogus socket server like http://google.com, you should see the same exception I am seeing.
The text was updated successfully, but these errors were encountered: