reichlab / forecast-repository

Codebase for Zoltar forecast repository
https://zoltardata.com/
GNU General Public License v3.0
6 stars 3 forks source link

Config File viz_options Invalid Error #342

Closed lshandross closed 1 year ago

lshandross commented 1 year ago

When trying to edit a project with a file, the following error message pops up when trying to preview changes:

The error was: 'viz_options' is invalid. errors=["viz_options is not a dict. viz_options=None, type=<class 'NoneType'>"]

This happens even when the config file has not been edited at all and seems to be an issue with the argument viz_options = null

(GitHub doesn't let me upload a JSON file for some reason, so I'm attaching a txt file with the same contents instead: CDC_Influenza_Hospitalization_Forecasts-config.txt. You can get the JSON file by downloading the project config file for the flu forecasting project here.)

I'm not sure if the issue is reproducible specifically for the flu forecasting project since I'm the project owner and I'm the only one who can edit it. However, a very similar error message appears with the following steps:

  1. Download the project config file for the flu forecasting project
  2. Go to the Projects page on Zoltar and click New, From file.
  3. Upload the flu forecasting project config file
  4. You should be directed to the error page with the error message: There was an error uploading the file. The error was: 'viz_options' is invalid. errors=["viz_options is not a dict. viz_options=None, type=<class 'NoneType'>"]

The main difference between the original error is that it's for trying to preview changes while the reproducible example is for creating a project from a file (and shows an error for uploading the file), but the contents of the error messages are otherwise the same.