bdarla
Erlang v. 23.0 and HTTPoison error
Dear all,
After upgrading Erlang to version 23.0, a previously working project stopped working and I am getting the following error when the HTTPoison is called:
** (MatchError) no match of right hand side value: {:error, %HTTPoison.Error{id: nil, reason: {:options, {:sslv3, {:versions, [:“tlsv1.2”, :“tlsv1.1”, :tlsv1, :sslv3]}}}}}
Does anyone else get a similar behaviour? Any hints for a solution?
Thanks in advance for your help!
Marked As Solved
bdarla
Thank you for the hint!
I would like to elaborate a bit more here to assist others facing a similar problem.
I have changed mix.exs by adding in deps:
{:hackney, github: “benoitc/hackney”, override: true}
Moreover, I have modified the usage of HTTPoison to set the options, e.g.:
options = [ssl: [{:versions, [:“tlsv1.2”]}]]
{:ok, %HTTPoison.Response{body: body, headers: _headers}} =
HTTPoison.get(, , options)
(UPDATE)
It seems that the change in the mix.exs file is not necessary.
Also Liked
BrightEyesDavid
Now that hackney 1.16.0 is released, we can get the fix into projects with:
$ mix deps.update hackney
In my project this gives me:
Upgraded:
certifi 2.5.1 => 2.5.2
hackney 1.15.2 => 1.16.0
idna 6.0.0 => 6.0.1
ssl_verify_fun 1.1.5 => 1.1.6
unicode_util_compat 0.4.1 => 0.5.0 (minor)
* Updating hackney (Hex package)
* Updating certifi (Hex package)
* Updating idna (Hex package)
* Updating ssl_verify_fun (Hex package)
* Updating unicode_util_compat (Hex package)
And TLS HTTP requests are once again working. Thanks!
stefanchrobot
Downgrade to OTP 22.x or get Hackney from master. See Fixed ssl connection issue on OTP23 rc2 by soranoba · Pull Request #619 · benoitc/hackney · GitHub
JeyHey
First guess: tlsv1.3 was added and sslv3 was removed in OTP 23 according to the release notes.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








