# Zlib error

**URL:** <https://discourse.julialang.org/t/zlib-error/114600>\
**Category:** General Usage\
**Tags:** question\
**Created:** [May 23, 2024, 2:26am UTC](https://discourse.julialang.org/t/zlib-error/114600 "2024-05-23T02:26:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammad\_amini](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mohammad_amini/32/207038_2.png) [@mohammad\_amini](https://discourse.julialang.org/u/mohammad_amini)\
**Post date:** [May 23, 2024, 2:26am UTC](https://discourse.julialang.org/t/zlib-error/114600/1 "2024-05-23T02:26:47Z")

</div>

Hi,  
I ran a code twice and the first time everything was ok, the second time I encountered this error message. Do you know what the problem is?  
error message: zlib error: (code: -5)

---

<div class="post-metadata">

**Author:** ![abraemer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abraemer/32/51403_2.png) [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Post date:** [May 23, 2024, 8:28am UTC](https://discourse.julialang.org/t/zlib-error/114600/2 "2024-05-23T08:28:28Z")

</div>

Unfortunately my crystal ball is currently out of order, so you’ll need to provide some more information. I suggest having a look at

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

and then provide some more input about:

1. What Julia version are you using and how did you install it? (Unofficial binaries can cause basically any problem)
2. if you are using an official binary, the error likely comes from the code you are using and not from Julia itself. So you’ll have to give more information about the code, i.e. post it and explain what it does.
3. Instead of posting the full code, please try to isolate the place where the error occurs (looks like you are decompressing something, so it likely has to do something with File I/O) to make it easier for us to help you.
