Skip to content

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

Open

Description

@apcxiii

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?

Activity

  1. valpackett commented on Aug 4, 2017

    @valpackett
    Owner

    What happens when you make that request with ibrowse directly?

    Freebsd 11

    nice :)

  2. valpackett commented on Feb 10, 2018

    @valpackett
    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'] ] ] ]
  3. iojupiter commented on Sep 30, 2018

    @iojupiter

    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

  4. rlipovski commented on Oct 15, 2018

    @rlipovski

    Having the same issue...

  5. madhuravius commented on Nov 9, 2018

    @madhuravius

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

  6. eidge commented on Nov 25, 2018

    @eidge
    Contributor

    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?

  7. gac commented on Dec 6, 2018

    @gac

    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"}

  8. gac commented on Dec 6, 2018

    @gac

    I downgraded the version of ibrowse and it works for me

    Downgraded:
    ibrowse 4.4.1 => 4.4.0

  9. mskog commented on Dec 21, 2018

    @mskog

    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"}
  10. valpackett commented on Dec 22, 2018

    @valpackett
    Owner

    Is this reported to ibrowse?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions