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
Hi, I am having what seems like DNS resolution issues with the OpenSSL library in my company's internal network and would appreciate some pointers to what it could be
The following program works correctly when I use a url with an address in the open internet, but when I use an address in our internal network, the http-client-tls part works and the http-client-openssl part throws an error
main =dolet url ="https://<some_url>"
req <- parseRequest url
putStrLn"http-client-tls"
tlsManager <- newManager tlsManagerSettings
run req tlsManager
putStrLn"http-client-openssl"
withOpenSSL $do
openSSLManager <- newOpenSSLManager
run req openSSLManager
where
run req manager = withResponse req manager $ brConsume . responseBody
This is the error thrown
http-test-exe: HttpExceptionRequest Request {
host = <redacted>
port = 1952
secure = True
requestHeaders = []
path = <redacted>
queryString = <redacted>
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
}
(ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_ADDRCONFIG,AI_NUMERICSERV], addrFamily = AF_INET, addrSocketType = Stream, addrProtocol = 0, addrAddress = <assumed to be undefined>, addrCanonName = <assumed to be undefined>}, host name: Just <redacted>, service name: Just "1952"): does not exist (Name or service not known))
The program is run with http_proxy and https_proxy set.
It seems like the settings of the tlsManager are making the hostname be resolved correctly but the openSSLManager is failing to do so.
Do you know what could cause that?
One thing that stands out is the most recent commit on http-client-openssl: 3bdfed4. Not sure if that's relevant, since you're using an older version of the library. Perhaps you could try bumping to the latest version.
Hi, I am having what seems like DNS resolution issues with the OpenSSL library in my company's internal network and would appreciate some pointers to what it could be
The following program works correctly when I use a
url
with an address in the open internet, but when I use an address in our internal network, thehttp-client-tls
part works and thehttp-client-openssl
part throws an errorThis is the error thrown
The program is run with
http_proxy
andhttps_proxy
set.It seems like the settings of the
tlsManager
are making the hostname be resolved correctly but theopenSSLManager
is failing to do so.Do you know what could cause that?
I am using
The text was updated successfully, but these errors were encountered: