**Prerequisites:** - Elixir 1.4.5 - OTP 19 When I've try to send a post an endpoint, the response send `message: "closed"` ```json iex(5)> HTTPotion.post(url, [body: body, headers: headers]) %HTTPotion.ErrorResponse{message: "closed"} ``` The issue appears in my local environment (Mac OS): ``` Erlang/OTP 19 [erts-8.3] [source-d5c06c6] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false] Elixir 1.4.5 ``` and in the staging env (Freebsd 11): ``` Erlang/OTP 19 [erts-8.3.5.2] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false] [dtrace] Elixir 1.4.5 ``` Can you help me please?
Activity
valpackett commentedon Aug 4, 2017
What happens when you make that request with ibrowse directly?
nice :)
valpackett commentedon Feb 10, 2018
Looks like it might be ERL-192.
Try forcing a newer TLS version:
iojupiter commentedon Sep 30, 2018
Getting this issue without further explanation...
HTTPotion.get! "google.ch"** (HTTPotion.HTTPError) ehostunreach(httpotion) lib/httpotion.ex:453: HTTPotion.request!/3If I test a port on local machine it works fine.
Please aid
rlipovski commentedon Oct 15, 2018
Having the same issue...
madhuravius commentedon Nov 9, 2018
I am also having this issue on Mac OS. Same error as @iojupiter
eidge commentedon Nov 25, 2018
Same issue, also on Mac.Tried the workaround to set a different tls version but get this:
message: "{:conn_failed, {:option_not_a_key_value_tuple, :versions}}"Any ideas?
gac commentedon Dec 6, 2018
I executed the sentence:
HTTPotion.get "https://check-tls.akamaized.net", [ ibrowse: [ ssl_options: [ versions: [:'tlsv1.2'] ] ] ]
I got the same error
%HTTPotion.ErrorResponse{message: "ehostunreach"}
gac commentedon Dec 6, 2018
I downgraded the version of ibrowse and it works for me
Downgraded:
ibrowse 4.4.1 => 4.4.0
mskog commentedon Dec 21, 2018
Confirmed to work for me as well in a fresh Phoenix 1.4 application on my Ubuntu 18.04 machine
Elixir 1.7.4
OTP 20
Before downgrading ibrowse:
valpackett commentedon Dec 22, 2018
Is this reported to ibrowse?