-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unable to download icon: reqwest::Error DecompressError #4224
Comments
It probably instructs the clients via headers that the stream is compressed, but either isn't, or isn't using the compression it reports it's using. I haven't looked into it, but I'm afraid it's not something we can fix easily on our side if that is the case. |
For some reason, the official bitwarden implementation/server seems to handle it just fine.
I may have an idea. |
The servers are very different, so yea not comparable. That might be an option, but as mentioned, not yet checked it out. |
It could also be a bug in reqwest btw. |
I'm not proficient with Rust specifically, but at least I did a GET using the reqwest library. I dug further.
Meanwhile, the server answers with this content-type: I think that the decoding trusts either the extension or the Content-Type, which conflicts with the actual file content. |
We always return The download is probably working just fine, but since we have gzip/brotli enabled, that might cause an issue. |
@Nicnl I did some testing, but the problem is actually at the sites endpoint. For example, we sent Using curl to download the compressed data in If i use We can do two things, leave it as-is, since the site is at fault here, and adding a check for this seems a bit to much in my opinion. My go would probably be the removal of the |
- Fix icon download issue by removing the deflate feature - Updated all the crates - Updated Handlebars code Fixes dani-garcia#4224
- Fix icon download issue by removing the deflate feature - Updated all the crates - Updated Handlebars code Fixes dani-garcia#4224
- Fix icon download issue by removing the deflate feature - Updated all the crates - Updated Handlebars code Fixes #4224
- Fix icon download issue by removing the deflate feature - Updated all the crates - Updated Handlebars code Fixes dani-garcia#4224
Subject of the issue
The icon of a website isn't being downloaded.
Website: https://www.labanquepostale.fr/ (It's a French bank, so quite a large thing)
A favicon seems to exist: https://www.labanquepostale.fr/favicon.ico
Here is the logs I'm getting:
I see a
DecompressError
, not sure if it's related to the HTTP stream or if it's some kind of decoding of the dot-ico file.Deployment environment
Docker with docker-compose.
Support string:
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: ADMIN_TOKEN
Steps to reproduce
Try to download the icon of labanquepostale.fr through the icon API endpoint.
Expected behaviour
The icon of labanquepostale.fr (https://www.labanquepostale.fr/favicon.ico) should be successfully forwarded.
Actual behaviour
The console log produces a
DecompressError
and the default icon is provided.The text was updated successfully, but these errors were encountered: