Investigating invalid uri character #347
Unanswered
troelsarvin
asked this question in
Questions
Replies: 1 comment
-
Internally URL parsing is done with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm fetching a lot of rather long URLs like this:
http://somewhere/xxxx/yyy/zzz?variable1=1.2.6.1.5.1.99999.2.11614477878827115943.6363256.27342.4221&someparameter=SOMEVALUE&somevariable=someratherlongvalue
For a large subset of my requests, my get()-call result in an error which I grab like this:
warn!("Error GETing URL {}: {}", url, e.source().unwrap_or(&e));
The warning I get is: invalid uri character
But there doesn't seem to be anything wrong with the URLs. At some point, I had my code run
let _urlcheck = Url::parse(url.as_str()).unwrap();
on URLs before using them with isahc::get(), and Url::parse didn't reject any of the URLs.
How can I dig deeper in to why isahc thinks the URL contains an invalid charter?
Beta Was this translation helpful? Give feedback.
All reactions