showdown icon indicating copy to clipboard operation
showdown copied to clipboard

websockets.exceptions.InvalidMessage: did not receive a valid HTTP response

Open zuils opened this issue 1 year ago • 1 comments

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/websockets/legacy/client.py", line 135, in read_http_response status_code, reason, headers = await read_response(self.reader) File "/usr/local/lib/python3.8/site-packages/websockets/legacy/http.py", line 122, in read_response raise EOFError("connection closed while reading HTTP status line") from exc EOFError: connection closed while reading HTTP status line

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "run.py", line 103, in asyncio.run(showdown()) File "/usr/local/lib/python3.8/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "run.py", line 56, in showdown ps_websocket_client = await PSWebsocketClient.create( File "/showdown/showdown/websocket_client.py", line 35, in create self.websocket = await websockets.connect(self.address) File "/usr/local/lib/python3.8/site-packages/websockets/legacy/client.py", line 650, in await_impl_timeout return await asyncio.wait_for(self.await_impl(), self.open_timeout) File "/usr/local/lib/python3.8/asyncio/tasks.py", line 494, in wait_for return fut.result() File "/usr/local/lib/python3.8/site-packages/websockets/legacy/client.py", line 658, in await_impl await protocol.handshake( File "/usr/local/lib/python3.8/site-packages/websockets/legacy/client.py", line 322, in handshake status_code, response_headers = await self.read_http_response() File "/usr/local/lib/python3.8/site-packages/websockets/legacy/client.py", line 141, in read_http_response raise InvalidMessage("did not receive a valid HTTP response") from exc websockets.exceptions.InvalidMessage: did not receive a valid HTTP response

This was using nash_equilibrium and building with docker, never happened to me before

zuils avatar Jan 16 '24 15:01 zuils