-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
"error decoding response body" after upgrading to 0.12.10 #2507
Comments
I think I have a similar situation https://github.com/malwaredb/malwaredb-rs/actions/runs/12510436402/job/34905296392?pr=620: |
It's strange that such a seemingly simple scenario can trigger this "error decoding response body" and that it wasn't caught by the CI tests. |
I'll revert and release today. It'd be nice to understand why the bodies have extra bytes, because this didn't "slip" through CI, the error was designed on purpose. After putting the body in a decompressor and it claims the body is done, reqwest purposefully polls the inner body once to consume the end of a chunked |
Based on debug logging from cargo-bins/cargo-binstall#2004, the issue happens when downloading from https://index.crates.io/3/b/bat |
OK, I think I've found the issue. It was working fine with HTTP/1, but if I connect with HTTP/2, the server sends an extra empty data frame. I'll have a release up that ignores those frames if they are empty. |
PR #2508 up with a fix (in case you want to try it before I publish). |
This comment was marked as resolved.
This comment was marked as resolved.
v0.12.11 is published with the fix. Sorry for the inconvenience. |
https://github.com/cargo-bins/cargo-binstall/actions/runs/12511426634/job/34903489849#step:5:1
The text was updated successfully, but these errors were encountered: