vyachkonovalov

vyachkonovalov

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

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
psy-q
I’m trying to set up Emacs with elixir-ls via lsp-mode and credo via Flycheck. This should mostly be preconfigured as Flycheck picks up c...
New

Other Trending Topics Top

ElixirConf
Lightning Talk: Paulo Valente - Calling Elixir function from Nx | ElixirConf US 2025 https://www.youtube.com/watch?v=a3R4odDW9OM Comme...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews