anaconda / anaconda-project

Tool for encapsulating, running, and reproducing data science projects
https://anaconda-project.readthedocs.io/en/latest/
Other
217 stars 88 forks source link

Downloading a file with no `content-length` in its header fails #339

Closed maximlt closed 2 years ago

maximlt commented 2 years ago

We have an issue with downloading a CSV file in one of the examples at examples.pyviz.org (https://github.com/pyviz-topics/examples/issues/176). Requesting this file returns a header that doesn't have a 'content-length' entry, which means that no tqdm progress bar is created. The code however expects one and thus fails in this case:

https://github.com/Anaconda-Platform/anaconda-project/blob/3394ac6c7713f949b038952eafc3f90d92f19411/anaconda_project/internal/http_client.py#L86-L88