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

[Kemono] Received response with content-encoding: gzip, but failed to decode it. #2267

Closed
Fukitsu opened this issue Feb 5, 2022 · 1 comment
Labels

Comments

@Fukitsu
Copy link

Fukitsu commented Feb 5, 2022

./gallery-dl/Kemonoparty/fanbox/2253649/2021-01-01 - 1756263/(01)-Info.txt
[downloader.http][warning] file size mismatch (63 < 78) (1/inf)
./gallery-dl/Kemonoparty/fanbox/2253649/2021-01-01 - 1756263/(01)-Info.txt
[downloader.http][warning] ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check')) (2/inf)
./gallery-dl/Kemonoparty/fanbox/2253649/2021-01-01 - 1756263/(01)-Info.txt
[downloader.http][warning] ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check')) (3/inf)
./gallery-dl/Kemonoparty/fanbox/2253649/2021-01-01 - 1756263/(01)-Info.txt
[downloader.http][warning] ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check')) (4/inf)
./gallery-dl/Kemonoparty/fanbox/2253649/2021-01-01 - 1756263/(01)-Info.txt
[downloader.http][warning] ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check')) (5/inf)
./gallery-dl/Kemonoparty/fanbox/2253649/2021-01-01 - 1756263/(01)-Info.txt
[downloader.http][warning] ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -3 while decompressing data: incorrect header check')) (6/inf)

This happens when trying to download the text file from:
https://kemono.party/fanbox/user/2253649/post/1756263

My postprocessor:

"postprocessors": 
            [
                {
                    "name": "metadata",
                    "event": "post",
                    "filename": "info.json"
                }
            ]
mikf added a commit that referenced this issue Feb 6, 2022
(#2267)

fixes issues when data send with 'Content-Encoding: gzip' or other
encodings is larger than the actual file
@mikf
Copy link
Owner

mikf commented Feb 7, 2022

This particular bug for kemono is "fixed" in the latest release (d7b8e04), but the underlying problem when downloading gzipped or deflated content is still there for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants