Websocket connection was forcibly closed by the remote host.
-
Hi @admin,
Why was my websocket connection closed (in python)? Can you please let me know?
I saw 4 errors in websocket: "Connection closed" around 23/07/2024 12:10:55 PM.
I also observed An existing connection was forcibly closed by the remote host - goodbye around same time.
Error stack:
23/07/2024 12:10:55 PM error in connection: Connection closed
23/07/2024 12:10:55 PM [Errno 11001] getaddrinfo failed - goodbye
23/07/2024 12:10:55 PM error from callback <bound method SmartWebSocketV2._on_close of <SmartApi.smartWebSocketV2.SmartWebSocketV2 object at 0x0000028F4545FB20>>: _on_close() takes 2 positional arguments but 4 were given
23/07/2024 12:10:55 PM error in connection: Connection closed
23/07/2024 12:10:55 PM [Errno 11001] getaddrinfo failed - goodbye
23/07/2024 12:10:55 PM error from callback <bound method SmartWebSocketV2._on_close of <SmartApi.smartWebSocketV2.SmartWebSocketV2 object at 0x0000028F4545FB20>>: _on_close() takes 2 positional arguments but 4 were given
23/07/2024 12:10:55 PM error in connection: Connection closed
23/07/2024 12:10:55 PM [WinError 10054] An existing connection was forcibly closed by the remote host - goodbye
23/07/2024 12:10:55 PM error from callback <bound method SmartWebSocketV2._on_close of <SmartApi.smartWebSocketV2.SmartWebSocketV2 object at 0x0000028F4545FB20>>: _on_close() takes 2 positional arguments but 4 were given
23/07/2024 12:10:55 PM error in connection: Connection closed