kolsrud / qlik_rest_sdk

SDK for accessing the Qlik Sense REST APIs
MIT License
20 stars 4 forks source link

A connection attempt failed because the connected party did not properly respond after a period of time, #1

Closed hp0123 closed 6 years ago

hp0123 commented 6 years ago

I get this exception - Inner Exception 1: SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

In the main below is what I have: var senseServerUrl = args.Any() ? args[0] : "https://myserverURL:4242"; var restClient = new RestClient(senseServerUrl);
restClient.LoadCertificateFromDirectory(@"C:\certs\certFolder"); restClient.AsNtlmUserViaProxy();
Console.WriteLine(restClient.Get("/qrs/about"));

kolsrud commented 6 years ago

Looks like you are mixing the connection types. Port number and certificates are only necessary if you do a direct connection.

Anyway, I just pushed a few fixes that affects both how you collect certificates and how NTLM connections are performed, so you should probably update to the latest one.

hp0123 commented 6 years ago

Thanks! Works fine now.