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

DecompressionException for some correctly gzipped content #1820

Open
kpartl opened this issue Jul 8, 2022 · 0 comments
Open

DecompressionException for some correctly gzipped content #1820

kpartl opened this issue Jul 8, 2022 · 0 comments

Comments

@kpartl
Copy link

kpartl commented Jul 8, 2022

I get io.netty.handler.codec.compression.DecompressionException: Input is not in the GZIP format from some urls when header accept-encoding: gzip is used. When I turn decompression off and decompress the content myself using java.util.zip.GZIPInputStream, there is no problem with decompression.
To turn decompression off I use

new DefaultAsyncHttpClientConfig.Builder()
            .setHttpAdditionalChannelInitializer(
                ch -> {
                  ch.pipeline().remove(ChannelManager.INFLATER_HANDLER);
                })

Examples of url where I got DecompressionException:
https://www.slovakparagliding.sk/product/swing-mito/
http://www.poslatpohladnicu.sk/myslim-na-svadbu-s-tebou/605.html
https://vinko.sk/casopis-vinoteka/vinoteka-1-2015-v-predaji-520
http://www.novota-art.sk/quote/motesickych1/

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

1 participant