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