bdarla

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

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

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!

17
Post #8
stefanchrobot

stefanchrobot

JeyHey

JeyHey

First guess: tlsv1.3 was added and sslv3 was removed in OTP 23 according to the release notes.

Where Next?

Popular in Questions Top

New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lists...
New
JulienCorb
I am trying to implement my new.html.eex file to create new posts on my website. new.html.eex: <h1>Create Post</h1> <%= ...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
marick
I had some trouble figuring out how to make many-to-many associations work. Once I got it working, I wrote a blog post. Because I’m a nov...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
AstonJ
Please see the new poll here: Which code editor or IDE do you use? (Poll) (2022 Edition) It’s been a while since we first asked this, I...
208 31142 143
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New

We're in Beta

About us Mission Statement