Timestamp error 2023-09-15

Hi Brian,

When running backtests, regardless of start/end dates, we are getting the following error:

HTTPError: ('500 Server Error: Internal Server Error for url: http://houston/zipline/bundles/data/usstock-1min.csv?start_date=2022-09-16&sids=FIBBG000BDTBL9', {'status': 'error', 'msg': 'an unhandled exception occurred, please check flightlog for the traceback', 'error': "Timestamp('2023-09-15 00:00:00+0000', tz='UTC')"})

Strangely the error timestamp contains the year 2023.
This is for the bundle 'usstock-1min'.

It can be reproduced by simply trying to download the bundle file:

from quantrocket.zipline import download_bundle_file
import io
f = io.StringIO()
download_path = "bundle_download.csv"
download_bundle_file("usstock-1min",
                     sids = 'FIBBG000BDTBL9',
                     start_date="2022-09-16", 
                     filepath_or_buffer=download_path)

Any suggestions as to how we can fix this? We have done a force re-ingestion for the sid and that didn't work either

curl -X POST http://houston/zipline/ingestions/usstock-1min?sids=FIBBG000BDTBL9&force=true"

Thanks

Hard to say without seeing your full traceback but it could be a calendar caching issue that has been seen from time to time. Please try restarting the zipline container and repeating the query:

docker compose restart zipline