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

HTTPoison fails to send any request #411

Closed
r-coh opened this issue May 15, 2020 · 9 comments
Closed

HTTPoison fails to send any request #411

r-coh opened this issue May 15, 2020 · 9 comments

Comments

@r-coh
Copy link

r-coh commented May 15, 2020

When using HTTPoison request, can't figure out why, since the same works in another machine with similar specifications and settings..

iex(33)> HTTPoison.get!("https://httpbin.org/anything")
** (HTTPoison.Error) {:options, {:sslv3, {:versions, [:"tlsv1.2", :"tlsv1.1", :tlsv1, :sslv3]}}}
    (httpoison) lib/httpoison.ex:128: HTTPoison.request!/5

tested this with elixir 1.9.4, OTP 23 on a centos7 machine

@r-coh r-coh closed this as completed May 15, 2020
@r-coh
Copy link
Author

r-coh commented May 15, 2020

Downgraded to otp 22 fixed it.

@inhji
Copy link

inhji commented May 16, 2020

Using the following options fixed it for me:

[ssl: [{:versions, [:"tlsv1.2", :"tlsv1.1", :tlsv1]}]]

I'm on Ubuntu 18.04, OTP/23, Elixir 1.10.3 (compiled with Erlang/OTP 21)

@conradfr
Copy link

OTP23 has removed support for SSLv3 so I guess that's why we get these errors.

@inhji
Copy link

inhji commented May 17, 2020

There is already a fix in hackney: benoitc/hackney#619
It's not released yet, though.

@camstuart
Copy link

This is tricky, I'm using a dependency that in turn uses HTTPoison how can I specify:

[ssl: [{:versions, [:"tlsv1.2", :"tlsv1.1", :tlsv1]}]] @inhji any ideas?

@inhji
Copy link

inhji commented May 18, 2020

@camstuart As far as I know, there are two ways you can get around this:

  • Downgrade to OTP22. I've done this using https://github.com/asdf-vm
  • Patch the library you're using to include the options for HTTPoison

Downgrading OTP seems more sensible to me, given that OTP23 is only out for less than a week at this point.

@camstuart
Copy link

camstuart commented May 18, 2020

I downgraded to 22, but still seem to have a problem. But asdf is a great tool, thanks for letting me in that secret!

@r-coh
Copy link
Author

r-coh commented May 19, 2020

@camstuart you also have to rebuild your app with OTP 22

@r-coh
Copy link
Author

r-coh commented May 19, 2020

asdf is dope; had installed, erlang using official yum repo, turns our centos7 has yum-cron which kept updating it to OTP23, wouldn't have encountered this if using asdf.

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

4 participants