Skip to content
New issue

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

HTTPotion.ErrorResponse{message: "closed"} #115

Open
apcxiii opened this issue Aug 4, 2017 · 10 comments
Open

HTTPotion.ErrorResponse{message: "closed"} #115

apcxiii opened this issue Aug 4, 2017 · 10 comments

Comments

@apcxiii
Copy link

apcxiii commented Aug 4, 2017

Prerequisites:

  • Elixir 1.4.5
  • OTP 19

When I've try to send a post an endpoint, the response send message: "closed"

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?

@valpackett
Copy link
Owner

What happens when you make that request with ibrowse directly?

Freebsd 11

nice :)

@valpackett
Copy link
Owner

Looks like it might be ERL-192.

Try forcing a newer TLS version:

HTTPotion.get "https://check-tls.akamaized.net", [ ibrowse: [ ssl_options: [ versions, [:'tlsv1.2'] ] ] ]

@iojupiter
Copy link

Getting this issue without further explanation...

HTTPotion.get! "google.ch"
** (HTTPotion.HTTPError) ehostunreach
(httpotion) lib/httpotion.ex:453: HTTPotion.request!/3

If I test a port on local machine it works fine.
Please aid

@rlipovski
Copy link

Having the same issue...

@madhuravius
Copy link

I am also having this issue on Mac OS. Same error as @iojupiter

@eidge
Copy link
Contributor

eidge commented 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
Copy link

gac commented Dec 6, 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?

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
Copy link

gac commented Dec 6, 2018

I downgraded the version of ibrowse and it works for me

Downgraded:
ibrowse 4.4.1 => 4.4.0

@mskog
Copy link

mskog commented Dec 21, 2018

I downgraded the version of ibrowse and it works for me

Downgraded:
ibrowse 4.4.1 => 4.4.0

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:

iex(1)> HTTPotion.get "www.example.com"
%HTTPotion.ErrorResponse{message: "enetunreach"}

@valpackett
Copy link
Owner

Is this reported to ibrowse?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants