Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zlib.error: Error -3 while decompressing data: incorrect header check #4

Closed
Benjamin-beep opened this issue Aug 5, 2019 · 7 comments

Comments

@Benjamin-beep
Copy link

Hi, i am having a problem, maybe someone knows how to fix this:

Process FindObjectsWorker-28:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "git-dumper.py", line 108, in run
result = self.do_task(task, *self.args)
File "git-dumper.py", line 285, in do_task
obj_file = dulwich.objects.ShaFile.from_path(abspath)
File "/usr/local/lib/python3.6/dist-packages/dulwich/objects.py", line 401, in from_path
return cls.from_file(f)
File "/usr/local/lib/python3.6/dist-packages/dulwich/objects.py", line 407, in from_file
obj = cls._parse_file(f)
File "/usr/local/lib/python3.6/dist-packages/dulwich/objects.py", line 382, in _parse_file
obj._parse_object(map)
File "/usr/local/lib/python3.6/dist-packages/dulwich/objects.py", line 362, in _parse_object
self.set_raw_string(_decompress(raw))
File "/usr/local/lib/python3.6/dist-packages/dulwich/objects.py", line 84, in _decompress
dcomped = dcomp.decompress(string)
zlib.error: Error -3 while decompressing data: incorrect header check

@arthaud
Copy link
Owner

arthaud commented Jan 4, 2020

Hi @Benjamin-beep,

Do you still have the issue?
Could you provide us a way to reproduce it?

@evilboyajay
Copy link

I got the same error at
dcomped = dcomp.decompress(string)

@vzamanillo
Copy link

vzamanillo commented May 13, 2020

This can be caused by a response with status code 200 but with not a binary content like a WAF HTML response or another (stackpath, cloudflare).

@Sicks3c
Copy link

Sicks3c commented May 19, 2020

@vzamanillo anyway around this ?

@vzamanillo
Copy link

@vzamanillo anyway around this ?

No way :/, the one and only solution is passing the headers to request.

@DashLt
Copy link

DashLt commented Nov 15, 2020

This is caused by sites returning error pages (e.g. not found) with a 200 status code (incorrect, but it happens a lot). #13 closes this, since it now also checks to see whether the Content-Type is HTML.

@arthaud
Copy link
Owner

arthaud commented Feb 21, 2021

This should be fixed by 7da1861

@arthaud arthaud closed this as completed Feb 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants