Closed dkuku closed 3 years ago
Hi @dkuku ,
What do you mean by handle it? If you use .get
instead of .get!
you should get a proper HTTPoison.Error
. Is that what you mean?
I scrolled the wrong command in iex - I was using get before when I pasted the initial title
I was thinking more of pointing the user that the error comes from hackney - I only found it out only because I saw that its using hackney and I checked if it works in hackney, The original atom is converted to string anyway so it would be good to add something that points to hackney instead just wrapping it in a struct because its a bit confusing.
maybe hackney returned:
and the reason
The README.md very clearly states that we use hackney under the hood. I don't see us changing the return of a function so that people are aware of which libs are used. I think it's part of the research that people should do around using open source libraries. Thanks for opening the issue
I have an error with "https://www.sejm.gov.pl/", (HTTPoison.Error) :closed I can get to google with HTTPPoison (iex(3)) and this url: https://www.sejm.gov.pl/ with curl works just fine iex(2) Steps to reproduce:
I saw an old post from 2018 that it may be a hackney issue - and the solution was to upgrade hackney. https://github.com/edgurgel/httpoison/issues/326 So even if it is hackney - we should probably handle it and show some kind of message to the user