Has anyone come across the following response to HTTPoison before? The trace doesn’t seem to provide any clue as to the cause.
HTTPoison version “1.7.0”
:hackney_trace.enable(:max, :io)
response = HTTPoison.get("https://www.mybramble.co.uk",headers)
# {:error, %HTTPoison.Error{id: nil, reason: :closed}}
# Trace
hackney trace 80 <0.338.0> 2020:12:23 18:09:24 4629] request
Content: [{module,hackney},
{line,313},
{method,get},
{url,{hackney_url,hackney_ssl,https,<<"www.mybramble.co.uk">>,
<<>>,<<>>,<<>>,<<>>,"www.mybramble.co.uk",443,
<<>>,<<>>}},
{headers,[{<<"Content-Type">>,
<<"application/x-www-form-urlencoded">>},
{<<"User-Agent">>,
<<"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36">>}]},
{body,<<>>},
{options,[]}]
[hackney trace 60 <0.338.0> 2020:12:23 18:09:24 4633] request without proxy
Content: [{module,hackney},{line,685}]
[hackney trace 60 <0.338.0> 2020:12:23 18:09:24 4633] connect
Content: [{module,hackney_connect},
{line,32},
{transport,hackney_ssl},
{host,"www.mybramble.co.uk"},
{port,443},
{dynamic,true}]
[hackney trace 80 <0.377.0> 2020:12:23 18:09:24 4635] no socket in the pool
Content: [{module,hackney_pool},{line,101},{pool,default}]
[hackney trace 80 <0.377.0> 2020:12:23 18:09:25 4144] connect error
Content: [{module,hackney_pool},{line,121}]
[hackney trace 80 <0.338.0> 2020:12:23 18:09:25 4144] connect error
Content: [{module,hackney_connect},{line,233}]