Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTPoison.request!/5 raises %HTTPoison.Error with weird reason

After upgrading to Elixir 1.10.3, a call to HTTPoison.request!() raised a HTTPoison.Error with id: nil and a reason of {:options, {:sslv3, {:versions, [:"tlsv1.2", :"tlsv1.1", :tlsv1, :sslv3]}}}. What could cause this? All examples I've seen online assume the reason is an atom.

like image 285
bigblind Avatar asked Jun 02 '20 22:06

bigblind


1 Answers

sslv3 was removed from Erlang 23.0 because it is an old and insecure protocol. You need to upgrade hackney to 1.16.0 or higher so that you can get this PR that fixes that issue:

https://github.com/benoitc/hackney/pull/619

like image 181
Jason Axelson Avatar answered Nov 15 '22 09:11

Jason Axelson