For anyone experiencing the same problem, follow the issue here:
https://github.com/bicycle1885/CodecZlib.jl/issues/18