Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show an error for incomplete downloads #254

Open
ducaale opened this issue May 14, 2022 · 0 comments
Open

Show an error for incomplete downloads #254

ducaale opened this issue May 14, 2022 · 0 comments

Comments

@ducaale
Copy link
Owner

ducaale commented May 14, 2022

This is how HTTPie 3.1.1.dev0 handles incomplete downloads:

http -d httpbin.org/gzip
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Encoding: gzip
Content-Length: 224
Content-Type: application/json
Date: Sat, 14 May 2022 12:04:33 GMT
Server: gunicorn/19.9.0

Downloading to gzip.json
Done. 284 bytes in 00:0.18373 (1.5 kB/s)  # "Done" becomes "Interrupted" when there is an actual error

http: error: Incomplete download: size=224; downloaded=284

This can be a little bit tricky when resuming an interrupted download via --continue or when dealing with compressed responses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant