vyachkonovalov

vyachkonovalov

Hackney error {:option, :server_only, :honor_cipher_order}

Hello.
I’m getting a strange error when using HTTPoison.get (:hackney.get) with https. Here’s an example:

iex(1)> :hackney.get("https://google.com", [], <<>>, [])
{:error, {:option, :server_only, :honor_cipher_order}}

It’s happening even without an internet connection. So, something wrong on client side.
With http the method works ok:

iex(2)> :hackney.get("http://google.com", [], <<>>, []) 
{:ok, 301,
 [
   {"Location", "http://www.google.com/"},
   {"Content-Type", "text/html; charset=UTF-8"},
   {"Date", "Fri, 20 Sep 2019 13:06:17 GMT"},
   {"Expires", "Sun, 20 Oct 2019 13:06:17 GMT"},
   {"Cache-Control", "public, max-age=2592000"},
   {"Server", "gws"},
   {"Content-Length", "219"},
   {"X-XSS-Protection", "0"},
   {"X-Frame-Options", "SAMEORIGIN"}
 ], #Reference<0.2440657504.2265448450.64443>}

I can’t figure out what that error is about and why it’s happening. Please help.

elixir -v

Erlang/OTP 22 [erts-10.5] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]

Elixir 1.9.0 (compiled with Erlang/OTP 22)

hackney 1.15.1, httpoison 1.5.1

Marked As Solved

Also Liked

vyachkonovalov

vyachkonovalov

Thank you

Last Post!

vyachkonovalov

vyachkonovalov

Thank you

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
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
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
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

Other popular topics Top

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
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44139 214
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID&lt;0.412.0&gt; terminating ** (Postgrex.Error) FATAL...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement