Running app overnight - Uncaught exception GET - parsedate_to_datetime

Config:

  • Python:3.8.2
  • Streamlit 1.36.0
  • Windows

I left my Streamlit application running locally overnight. A task is running and getting data through POST requests and adding the data to a dataframe. I am using a placeholder to visualize the dataframe at runtime and remptying the dataframe every 100 entries.

After around 10 hours, the following error occurs:

03:48:55.588 Uncaught exception GET / (172.20.XX.XX)
HTTPServerRequest(protocol=‘http’, host=‘172.20.YY.YY:port’, method=‘GET’, uri=‘/’, version=‘HTTP/1.1’, remote_ip=‘172.20.XX.XX’)
Traceback (most recent call last):
File “C:\Users\APPUSER\AppData\Local\pypoetry\Cache\virtualenvs\venv\lib\site-packages\tornado\web.py”, line 1790, in _execute
result = await result
File “C:\Users\APPUSER\AppData\Local\pypoetry\Cache\virtualenvs\venv\lib\site-packages\tornado\web.py”, line 2695, in get
if self.should_return_304():
File “C:\Users\APPUSER\AppData\Local\pypoetry\Cache\virtualenvs\venv\lib\site-packages\tornado\web.py”, line 2820, in should_return_304
if_since = email.utils.parsedate_to_datetime(ims_value)
File “C:\Users\APPUSER\AppData\Local\Programs\Python\Python38\lib\email\utils.py”, line 198, in parsedate_to_datetime
*dtuple, tz = _parsedate_tz(data)
TypeError: cannot unpack non-iterable NoneType object
03:48:55.786 500 GET / (172.20.XX.XX) 198.99ms

I am not sure what this GET request is about and where it stems from and why it crashes.

Any help or hint is much appreciated.