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

Some times Error,throw stream did not contain valid UTF-8 #22

Closed
readmagic opened this issue Feb 5, 2021 · 1 comment
Closed

Some times Error,throw stream did not contain valid UTF-8 #22

readmagic opened this issue Feb 5, 2021 · 1 comment

Comments

@readmagic
Copy link

Some times run the application ,Throw 《stream did not contain valid UTF-8》, I'm new to Rust。But I found the problem。
netease some times will respond the "content-encoding:br" in header.So the reqwest crash。
bug fix in api.rs
headers.insert(ACCEPT_ENCODING, "gzip,deflate,br".parse().unwrap());
change to
headers.insert(ACCEPT_ENCODING, "gzip,deflate".parse().unwrap());

then solved。

@readmagic readmagic changed the title Some time Error,throw stream did not contain valid UTF-8 Some times Error,throw stream did not contain valid UTF-8 Feb 5, 2021
@betta-cyber
Copy link
Owner

thank you !!

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