ps: when not using flush: constants.Z_FULL_FLUSH i get an empty file with just the Gzip header (i guess)
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
No response
What do you see instead?
Error: unexpected end of file
at genericNodeError (node:internal/errors:956:15)
at wrappedFn (node:internal/errors:510:14)
at Zlib.zlibOnError [as onerror] (node:zlib:189:17) {
errno: -5,
code: 'Z_BUF_ERROR'
}
Version
21.4.0
Platform
Linux penguin 6.1.55-06877-gc83437f2949f #1 SMP PREEMPT_DYNAMIC Sat Dec 2 18:30:09 PST 2023 x86_64 GNU/Linux
Subsystem
Debian 11 (chromeos flex)
What steps will reproduce the bug?
write each line to the compressed file using
writeStream.write(....);
inside a for await loopand then add some new lines and then run :
ps: when not using
flush: constants.Z_FULL_FLUSH
i get an empty file with just the Gzip header (i guess)How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
No response
What do you see instead?
Additional information
No response