Failed to decode gzip: Failed to decompress data: gzip: invalid header - Rust

This is probably your error, you are sending a hex string representation of the gzip encoded bytes. You should send the bytes as they are, not a string representation of them.