benoitc / hackney

simple HTTP client in Erlang
Other
1.34k stars 427 forks source link

Issue with hackney:request/5 method #610

Closed ghost closed 4 years ago

ghost commented 4 years ago

I am facing an issue with hackney. I have the following code:


URL = ...,
Payload = ...,
Options = [{recv_timeout, 5000*4}],

{ok, StatusCode, RespHeaders, ClientRef} = hackney:request(Method, URL, Headers, Payload, Options),
{ok, RespBody} = hackney:body(ClientRef),

When this code is exercised through common test, once in a while hackney:request/5 method returns {ok, 200, <<>>, ref}; the atom ref instead of a#Ref<>. This seems to happen only in my CI environment.

I would grateful for any pointers on how to debug this issue.

benoitc commented 4 years ago

i don't see right now how it can happen. which version of hackney are you using?

benoitc commented 4 years ago

ping? can you evenuallt send me a trace?

benoitc commented 4 years ago

no activity since awhile. closing issue. Feel free to reopen an issuer with more details if you need it.