You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is waiting for {ok, Ref} in case of success. Because of this, the value of which was return by gen_tcp:recv will be considered as valid and its further use will lead to error.
The error occurs in the case of using socks5 proxy which does not work properly, but at the same time available for gen_tcp:send.
I attach an image with debugging this error. It is hard to understand where is the problem because of long call stack.
During a call of hackney_socks5:do_handshake, in part:
gen_tcp:recv can return {ok, SomeValue} which is counted as an error and returns up the call stack as a {ok, SomeValue}.
The problem is that hackney:connect/5 in the part:
is waiting for {ok, Ref} in case of success. Because of this, the value of which was return by gen_tcp:recv will be considered as valid and its further use will lead to error.
The error occurs in the case of using socks5 proxy which does not work properly, but at the same time available for gen_tcp:send.
I attach an image with debugging this error. It is hard to understand where is the problem because of long call stack.
It can be fixed by adding:
in hackney_socks5:do_handshake:
The text was updated successfully, but these errors were encountered: