-
Notifications
You must be signed in to change notification settings - Fork 259
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
Comments
Hi @Benjamin-beep, Do you still have the issue? |
I got the same error at |
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). |
@vzamanillo anyway around this ? |
No way :/, the one and only solution is passing the headers to request. |
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. |
This should be fixed by 7da1861 |
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
The text was updated successfully, but these errors were encountered: