You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It raises an error: ZstdError: could not determine content size in frame header
More context
I'm trying to rewrite a client application in rust, it sends compressed data to server, then server decompresses it. Unfortunally the server failed to decompress data.
Here is how I do it in client side:
use std::io::Cursor;use zstd;fnmain(){let body = zstd::encode_all(Cursor::new("{}".as_bytes()),3).unwrap();for x in body.iter(){print!("\\x{x:x?}");}}
And I copied the body and decompressed it in python, and it failed.
If I tried to compress data({} in my example) in python, and decompressed in rust, it successes. So I think it's the issue in python side.
In rust, I'm using zstd-rs for compressing/decompressing
The text was updated successfully, but these errors were encountered:
Here is simplest reproducing example:
It raises an error:
ZstdError: could not determine content size in frame header
More context
I'm trying to rewrite a client application in rust, it sends compressed data to server, then server decompresses it. Unfortunally the server failed to decompress data.
Here is how I do it in client side:
And I copied the body and decompressed it in python, and it failed.
If I tried to compress data(
{}
in my example) in python, and decompressed in rust, it successes. So I think it's the issue in python side.In rust, I'm using zstd-rs for compressing/decompressing
The text was updated successfully, but these errors were encountered: