You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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。
The text was updated successfully, but these errors were encountered:
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
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。
The text was updated successfully, but these errors were encountered: