We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Guys,
I caught weird behavior when I worked behind proxy.
Server 1 (behind proxy): OS: Redhat. Erlang/OTP 20 [erts-9.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]
Erlang/OTP 20 [erts-9.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]
options = [proxy: "http://xxx", proxy_auth: {"login", "pwd"}, ssl: [versions: [:'tlsv1.2']]] :hackney.get("https://google.com", [], [], options)
url = "https://media-direct.cdn.viber.com/download_photo?dlid=Gsag08bVZ_qFBt5G_ssCKUKFN9MJsAodr-kKgBVxln9MbHaKkeJe5WHjkqILcgzfeell1-pwccBnMH3aFJwtu4F0glyNO-53pUJ8vSWbUnNxW9qVy-xY1_HO7g7Dpl5bcUvbaA&fltp=jpg&imsz=0000" :hackney.get(url, [], [], options)
When I fetch image behind proxy, I receive {:error, :closed}
Server 2 (without proxy): OS Centos. Erlang/OTP 20 [erts-9.1.5] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]
Erlang/OTP 20 [erts-9.1.5] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]
Make the same things and receive correct result.
I made the same things with HTTPoison. The similar response.
Could you help me to find solution or workaround for this issue?
Thanks!
The text was updated successfully, but these errors were encountered:
I figured out issue.
Was two problems:
Sorry, something went wrong.
yeah i should make sure we use the proxy on follow redirect. I will have a look tomorrow as it’s late herr already. Thanks for the report anyway!
yeah, thanks. It is related issue: #273
How to enable proxy to follow redirects ?
@atanych , @benoitc can you help? I'm facing the same issue.
No branches or pull requests
Hi Guys,
I caught weird behavior when I worked behind proxy.
Server 1 (behind proxy):
OS: Redhat.
Erlang/OTP 20 [erts-9.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]
When I fetch image behind proxy, I receive {:error, :closed}
Server 2 (without proxy):
OS Centos.
Erlang/OTP 20 [erts-9.1.5] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]
Make the same things and receive correct result.
I made the same things with HTTPoison. The similar response.
Could you help me to find solution or workaround for this issue?
Thanks!
The text was updated successfully, but these errors were encountered: