reqwest fails on certain URLs? #1429
-
I have been trying to retrieve some files with reqwest but for some reason they seem to hang and fail, but the same request with curl or actix-web work just fine. I am not sure how to debug the inner workings of reqwest, but maybe someone can enlighten me? As a demonstration, one of the URLs that fail only on reqwest is: The code I'm using is as simple as: let response = reqwest::get(url).await?;
let _ = response.bytes().await?; and the program fails with:
Again, curl and actix-web work just fine. For now, I've switched to actix-web, but I would much prefer to be based on reqwest/hyper. Please let me know if you have any suggestions, and if you can point me to ways to debug the issue. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This was solved in the hyper issue tracker as being a server that would hang if a |
Beta Was this translation helpful? Give feedback.
This was solved in the hyper issue tracker as being a server that would hang if a
user-agent
header was not sent.