Downloading to "jquery-2.1.0.min.js"
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\site-packages\httpie\downloads.py", line 354, in run
File "C:\Python27\lib\site-packages\httpie\downloads.py", line 424, in sum_up
speed=humanize_bytes(actually_downloaded / time_taken),
ZeroDivisionError: float division by zero
Using HTTPie 0.8.0, requests 2.2.1, Pygments 1.6 on Python 2.7.6 Windows 7 64 bits.
Thanks for the report. Could you share the URL and the original command used?
Fixed ZeroDivisionError in download summary.
It should be fixed in current master now. You can install it via:
$ pip install --upgrade https://github.com/jkbr/httpie/tarball/master
In my case I queried a local webserver so the download was really quick and the file really small. The file has been downloaded just fine and probably in less than 1 unit of time, hence the error.
I retried multiple times and sometimes saw that it was working just fine displaying 0.00200s or so and sometimes it failed.