cmu-delphi / www-epivis

An interactive tool for visualizing epidemiological time-series data.
http://delphi.cmu.edu/epivis/
MIT License
1 stars 3 forks source link

Improve behavior on errors when importing a dataset #45

Open melange396 opened 1 month ago

melange396 commented 1 month ago

When using the functionality of loading/importing a dataset from the Epidata API and a bad request is made, a popup appears that says "Failed to fetch API data from API Link" (and it provides the link). Dismissing that popup also dismisses the "Load from Epidata API" popup, along with all the options selected or input into it. This is not very helpful or informative.

Make the error popup provide more useful information (like an error code any any messages returned by the API) and do not clear the previously chosen parameters (so it will be easier for the user to fix their bad request).

edit: