Open sansal54 opened 3 years ago
Ay,
Same here with a Django app :
[I 210926 17:22:27 handlers:92] Reload 1 waiters: application/views.py
[W 210926 17:22:27 iostream:983] Write error on <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>: [Errno 9] Bad file descriptor
Task exception was never retrieved
future: <Task finished name='Task-10' coro=<WebSocketProtocol13.write_message.<locals>.wrapper() done, defined at /home/krustyhack/anaconda3/envs/xxx/lib/python3.8/site-packages/tornado/websocket.py:1100> exception=WebSocketClosedError()>
Traceback (most recent call last):
File "/home/krustyhack/anaconda3/envs/xxx/lib/python3.8/site-packages/tornado/websocket.py", line 1102, in wrapper
await fut
tornado.iostream.StreamClosedError: Stream is closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/krustyhack/anaconda3/envs/xxx/lib/python3.8/site-packages/tornado/websocket.py", line 1104, in wrapper
raise WebSocketClosedError()
tornado.websocket.WebSocketClosedError
But it works well when I only edit my HTML templates :
python manage.py livereload
[I 210926 17:26:17 server:335] Serving on http://127.0.0.1:8000
[I 210926 17:26:17 handlers:62] Start watching changes
[I 210926 17:26:17 handlers:64] Start detecting changes
[I 210926 17:26:26 handlers:135] Browser Connected: http://127.0.0.1:8000/
[I 210926 17:26:30 handlers:92] Reload 1 waiters: application/templates/application/index.html
[I 210926 17:26:30 handlers:135] Browser Connected: http://127.0.0.1:8000/
[I 210926 17:26:35 handlers:92] Reload 1 waiters: application/templates/application/index.html
[I 210926 17:26:35 handlers:135] Browser Connected: http://127.0.0.1:8000/
Same in flask.
[W 220629 18:34:21 iostream:983] Write error on <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=2049, proto=6>: [Errno 9] Bad file descriptor
Task exception was never retrieved
future: <Task finished coro=<WebSocketProtocol13.write_message.<locals>.wrapper() done, defined at /home/xxx/workspace/xxx/venv/lib64/python3.6/site-packages/tornado/websocket.py:1100> exception=WebSocketClosedError()>
Traceback (most recent call last):
File "/home/xxx/workspace/xxx/venv/lib64/python3.6/site-packages/tornado/websocket.py", line 1102, in wrapper
await fut
tornado.iostream.StreamClosedError: Stream is closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/xxx/workspace/xxx/venv/lib64/python3.6/site-packages/tornado/websocket.py", line 1104, in wrapper
raise WebSocketClosedError()
tornado.websocket.WebSocketClosedError
Might be an upstream race condition with on_close
being called before on_message
, so it's not removed from the waiters
any update for this bug, i have same problem here
When I change something in code pages, I get following error :+1:
I run my flask web app with :
sudo pipenv run python3 main.py
and my code for the server start is :