Trouble connecting/downloading packages
Friday, September 6, 2019 at 12:24pmI've been having a bit of trouble connecting to the Canadian sandbox environment. The specific error message I'm getting is: "Could not get package. Exception: Object reference not set to an instance of an object."
Here's the code (irrelevant bits stripped out):
Dim _eslClient As New EslClient("Our API Key goes here", "https://sandbox.e-signlive.ca/api")
Dim docPackage As DocumentPackage
Dim pkgId As New PackageId("Package ID Goes Here")
docPackage = _eslClient.GetPackage(pkgId)
And that's when it throws a System.Net.Sockets.SocketException and we get the error code.
For the record, I've also tried _eslClient.SystemService.GetApplicationVersion()without any success. That one also threw a socket exception and gave a similar error message. This is .NET Framework 4.8 (we recently upgraded). The package IDs are coming straight from the callback and we've verified the API key is correct, so I'm at a little bit of a loss. The version of Silanis.ESL.dll is 11.0.1.0 and the Runetime Version is v2.0.50727. Any thoughts?
Reply to: Trouble connecting/downloading packages
Wednesday, September 11, 2019 at 10:51amReply to: Trouble connecting/downloading packages
Friday, September 6, 2019 at 12:55pmReply to: Trouble connecting/downloading packages
Friday, September 6, 2019 at 01:29pmReply to: Trouble connecting/downloading packages
Monday, September 9, 2019 at 05:42amReply to: Trouble connecting/downloading packages
Monday, September 9, 2019 at 07:13amPublic Function TestESignConnection() As String Implements IESLDownloaderSVC.TestESignConnection Dim response As HttpResponseMessage Try _httpClient.DefaultRequestHeaders.Authorization = New AuthenticationHeaderValue("Authorization", "Basic ")
_httpClient.DefaultRequestHeaders.Accept.Add(New MediaTypeWithQualityHeaderValue("application/json"))
response = _httpClient.GetAsync("https://sandbox.e-signlive.ca/api/callback").Result
Return JsonConvert.SerializeObject(response)
Catch ex As Exception
Return ex.ToString
End Try
End FunctionThis gave the same result as the SDK:"System.AggregateException: One or more errors occurred. ---> System.Net.Http.Http" + "RequestException: An error occurred while sending the request. ---> System.Net.W" + "ebException: The underlying connection was closed: An unexpected error occurred " + "on a send. ---> System.IO.IOException: Unable to read data from the transport co" + "nnection: An existing connection was forcibly closed by the remote host. ---> Sy" + "stem.Net.Sockets.SocketException: An existing connection was forcibly closed by " + "the remote host\r\n etc. etc.So I'm honestly at a little bit of a loss here. It sort of seems like the problem is the app itself, although I hasten to add it's working fine in production. I'll keep checking with our network people, but for the record, could you maybe let me know what problems with a proxy I should be asking about?Reply to: Trouble connecting/downloading packages
Monday, September 9, 2019 at 07:16amProxyConfiguration httpProxyConfiguration = ProxyConfigurationBuilder.newProxyConfiguration() .WithHttpHost("serverAddress") //e.g. localhost .WithHttpPort(portNumber) //e.g. 8001 .Build(); Boolean allowAllSSLCertificates = false; EslClient client = new EslClient(API_KEY, API_URL, allowAllSSLCertificates, httpProxyConfiguration);The guide also covers the solution for RESTful calls using HttpClient. DuoReply to: Trouble connecting/downloading packages
Wednesday, September 11, 2019 at 09:02amReply to: Trouble connecting/downloading packages
Wednesday, September 11, 2019 at 11:51amReply to: Trouble connecting/downloading packages
Wednesday, September 11, 2019 at 02:09pm