Connection Error in python-socketio (exceptions.ConnectionError(exc.args[0]) from None)

110 Views Asked by At

i write a code and use python-socketio and it works fine.

but sometimes(i mean every 10 or 20 run) i get the error below:

sio.connect(URL, transports=["websocket"], wait=False) File "/usr/local/lib/python3.9/site-packages/socketio/client.py", line 148, in connect raise exceptions.ConnectionError(exc.args[0]) from None socketio.exceptions.ConnectionError: Connection error

when i stop and run again it works.

what is the origin of this problem and what should i do?

i only can find the piece of code that error occurs there and that's it.

0

There are 0 best solutions below