We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi! Seems like ureq is not compatible with some websites. Any idea why? Here is an example:
let resp = ureq::get("https://www.okex.com/api/spot/v3/products") .set("Connection", "keep-alive") .set("Accept-Encoding", "identity") .timeout_connect(5_000) .timeout_read(5_000) .timeout_write(5_000) .call(); if !resp.ok() { eprintln!("Error! Code {}, line {}", resp.status(), resp.status_line()); }
It prints: Error! Code 500, line HTTP/1.1 500 Bad Status
Same URL works fine via firefox/chrome/curl/hyper/mio_httpc.
Same thing happens for URL https://api.fcoin.com/v2/public/symbols
The text was updated successfully, but these errors were encountered:
Thanks! I'll look into it!
Sorry, something went wrong.
d4d68ae
This was because these sites don't return a status text which the lib expected. Fixed in 0.9.1
No branches or pull requests
Hi! Seems like ureq is not compatible with some websites. Any idea why?
Here is an example:
It prints: Error! Code 500, line HTTP/1.1 500 Bad Status
Same URL works fine via firefox/chrome/curl/hyper/mio_httpc.
Same thing happens for URL https://api.fcoin.com/v2/public/symbols
The text was updated successfully, but these errors were encountered: