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
After upgrading to websockets==10.2 (latest uvicorn release 0.17.5)
It seems something changed here: f605e86 related to closing the connection, and the line numbers in my sentry reports agree.
uvicorn.error:244 closing handshake failed
Traceback (most recent call last):
File "/home/appuser/.local/lib/python3.9/site-packages/websockets/legacy/server.py", line 240, in handler
await self.close()
File "/home/appuser/.local/lib/python3.9/site-packages/websockets/legacy/protocol.py", line 779, in close
await asyncio.shield(self.close_connection_task)
File "/home/appuser/.local/lib/python3.9/site-packages/websockets/legacy/protocol.py", line 1312, in close_connection
self.transport.write_eof()
File "uvloop/handles/stream.pyx", line 696, in uvloop.loop.UVStream.write_eof
File "uvloop/handles/handle.pyx", line 159, in uvloop.loop.UVHandle._ensure_alive
RuntimeError: unable to perform operation on <TCPTransport closed=True reading=False 0x55f7ecebc570>; the handler is closed
I'm not sure if websockets library or uvicorn is the culprit here ?
The text was updated successfully, but these errors were encountered:
After upgrading to websockets==10.2 (latest uvicorn release 0.17.5)
It seems something changed here: f605e86 related to closing the connection, and the line numbers in my sentry reports agree.
uvicorn.error:244 closing handshake failed
Traceback (most recent call last):
File "/home/appuser/.local/lib/python3.9/site-packages/websockets/legacy/server.py", line 240, in handler
await self.close()
File "/home/appuser/.local/lib/python3.9/site-packages/websockets/legacy/protocol.py", line 779, in close
await asyncio.shield(self.close_connection_task)
File "/home/appuser/.local/lib/python3.9/site-packages/websockets/legacy/protocol.py", line 1312, in close_connection
self.transport.write_eof()
File "uvloop/handles/stream.pyx", line 696, in uvloop.loop.UVStream.write_eof
File "uvloop/handles/handle.pyx", line 159, in uvloop.loop.UVHandle._ensure_alive
RuntimeError: unable to perform operation on <TCPTransport closed=True reading=False 0x55f7ecebc570>; the handler is closed
I'm not sure if websockets library or uvicorn is the culprit here ?
The text was updated successfully, but these errors were encountered: