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

ERR_HTTP2_COMPRESSION_ERROR while downloading a file #3196

Open
athukuria opened this issue Aug 3, 2024 · 1 comment
Open

ERR_HTTP2_COMPRESSION_ERROR while downloading a file #3196

athukuria opened this issue Aug 3, 2024 · 1 comment

Comments

@athukuria
Copy link

athukuria commented Aug 3, 2024

I can download a file using api with postman
Response Headers
content-type: application/zip
content-length: 107627
cache-control: no-store
Content-Disposition: attachment; filename=logs.zip

I tried with CURL which is successful:
curl --http1.1 -k -OJ https://x.x.x.x/api/files/download-logfile

But when I use chrome browser I see error:
The webpage at https://x.x.x.x/api/files/download-logfile might be temporarily down or it may have moved permanently to a new web address.
ERR_HTTP2_COMPRESSION_ERROR

I tried to enable in library, Still same problem
-DLWS_WITH_HTTP2=ON
-DLWS_WITH_HTTP_STREAM_COMPRESSION=1

What could be the problem here? Am I missing anything here?

@lws-team
Copy link
Member

Your curl example is forcing h1, chrome is using h2, whatever the problem is seems to be related to h2. Your "zip file" does not need http stream compression, they are two different things. It sounds like you can work around it by disable h2 or the stream compression rather than enable it.

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

2 participants