I’ve been trying to run my streamlit app through either AWS EC2 instances or streamlit sharing. Both of which have resulted in the error below.
When using a Ubuntu 18.04 server on Amazon I receive the error as soon as I access the app from outside my network and with streamlit sharing the app runs fine for a few hours then crashes with the same error.
If anyone could advise on how to deal with the following I would greatly appreciate.
2021-02-03 20:38:43.628 Task exception was never retrieved
future: <Task finished coro=<WebSocketProtocol13.write_message.<locals>.wrapper() done, defined at /usr/local/lib/python3.7/site-packages/tornado/websocket.py:1100> exception=WebSocketClosedError()>
Traceback (most recent call last):
File "/usr/local/lib/python3.7/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 "/usr/local/lib/python3.7/site-packages/tornado/websocket.py", line 1104, in wrapper
raise WebSocketClosedError()
tornado.websocket.WebSocketClosedError
2021-02-03 21:08:36.636 Task exception was never retrieved
future: <Task finished coro=<WebSocketProtocol13.write_message.<locals>.wrapper() done, defined at /usr/local/lib/python3.7/site-packages/tornado/websocket.py:1100> exception=WebSocketClosedError()>
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/tornado/websocket.py", line 1102, in wrapper
await fut
tornado.iostream.StreamClosedError: Stream is closed