Problem with fetching website with https via proxy

I have problem with fetching website with https via proxy

HTTPoison.get("https://comicvine.gamespot.com/", [], [proxy: "87.245.154.66:80"])

returns

SSL: :hello: ssl_alert.erl:88:Fatal error: handshake failure

I tried call it with options:

ssl: [versions: [:'tlsv1.2']]

or

ssl: [{:verify, :verify_none}]

Unfortunatelly it didn’t help in this case.

In case of more data about my environment:

$ iex -S mix
Erlang/OTP 19 [erts-8.3] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Interactive Elixir (1.4.0) - press Ctrl+C to exit (type h() ENTER for help)

I tried to run it with hackney which is used by HTTPoison

:hackney.request(:get, "https://comicvine.gamespot.com/", [], <<>>, [proxy: "87.245.154.66:80"])

Unfortunatelly results were the same like with HTTPoison. Maybe someone know what is wrong with fetching this website.

Does it work without the proxy?
Does it work using your usual browser with and without the proxy?
Does it work using curl on the terminal with and without the proxy?

It works without proxy.

I can fetch it via proxy in Ruby with Faraday, so generally it can be fetched by proxy.

I checked it using curl

curl --proxy 87.245.154.66:80 https://comicvine.gamespot.com/

it works fine, but I want to run it via HTTPoison or different elixir package.

I updated erlang to version 20 and elixir to 1.5.0 but I have still the same problem.

1 Like