GZipDecoder Dropping Chunks #2171
Unanswered
aaronst
asked this question in
Potential Issue
Replies: 1 comment 1 reply
-
|
Digging further into |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My team has identified an issue with
httpx._decoders.GZipDecoderthat results in only the first chunk of data being decompressed and returned byResponse.iter_bytes(). To reproduce this, we dumped the stream into a listchunksand wrote the following:For
httpx, the first chunk decodes fine but the rest decode to an empty byte-string. This doesn't throw any errors, the result is just a much smaller body returned from any of theResponsemethods, except for.iter_raw()since it doesn't decode.I can't share the actual
chunkshere, the data comes from a paid third-party service, but can do so privately as needed. It's not clear to us if the encoding sent from the server is "bad", buturllib3handles it just fine and it would be awesome ifhttpxcould too!Beta Was this translation helpful? Give feedback.
All reactions