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
It triggers a request against https://httpstat.us/200?sleep=1200 which, with a timeout of 1sec, will time out.
Using httpx as adapter, it always return a SSLError:
Hi 👋
It seems there is an issue with HTTPX, when used with Faraday, a proxy and when a timeout happens.
This snipppet should return a
Faraday::TimeoutError
but instead it returns aFaraday::SSLError
:It triggers a request against
https://httpstat.us/200?sleep=1200
which, with a timeout of 1sec, will time out.Using httpx as adapter, it always return a
SSLError
:The same snippet, with a different adapter like
net_http
orhttp
return the right errorFaraday::TimeoutError
.More context
Gem versions
Previous bug
Previous to HTTPX v1.3.2, that snippet would have returned :
and that bug was solved here.
Certificate
Passing or not the certificate explicitly (
:ssl => { :ca_path => "/usr/lib/ssl/certs" })
) doesn't change the outcomeHTTPX only
Oddly enough, HTTPX without Faraday returns the right error
The text was updated successfully, but these errors were encountered: