Fetch can't decompress brotli response #13531
Answered
by
FabianLars
petrvecera
asked this question in
Q&A
-
I have API which returns JSON data in only br encoding. When I visit the url inside the browser it works well (as well with any other code. When I try to fetch the data like this:
it crashes unless I put there the binary I have tried adding into cargo.toml:
but it didn't help 🤔 I have found this #7852 where they had problems with gzip ... I am on Tauri 1
Any ideas what could be wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
FabianLars
May 30, 2025
Replies: 1 comment 3 replies
-
I was able to fix this with downgrading the reqwest - so I assume there has to be some kind of bug:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tauri itself depends on reqwest 0.11 == it has it in its own cargo.toml file.
0.11 vs 0.12 are like 1.0 vs 2.0 so not semver compatible (in other words, they count as completely different packages) which means that cargo will not combine them.
Tauri doesn't "lock" any of its dependencies outside of this semver behavior.