Account
I am a
Developer
Product(s)
Earned badges
Achievement: Latest Unlocked
Preferences
Replies
Topics Started
Topic Started
Topics |
---|
I'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.
|
Replies Created
Reply to: Trouble connecting/downloading packages
Friday, September 6, 2019 at 12:55pmOh, if it helps, this is what I'm getting in the Visual Studio output window:
Exception thrown: 'System.Net.Sockets.SocketException' in System.dll Exception thrown: 'System.IO.IOException' in System.dll Exception thrown: 'System.IO.IOException' in System.dll Exception thrown: 'System.IO.IOException' in System.dll Exception thrown: 'System.IO.IOException' in System.dll Exception thrown: 'System.IO.IOException' in System.dll Exception thrown: 'System.ObjectDisposedException' in System.dll Exception thrown: 'System.Net.Sockets.SocketException' in System.dll Exception thrown: 'System.IO.IOException' in System.dll Exception thrown: 'System.IO.IOException' in System.dll Exception thrown: 'System.IO.IOException' in System.dll Exception thrown: 'System.IO.IOException' in System.dll Exception thrown: 'System.IO.IOException' in System.dll Exception thrown: 'System.ObjectDisposedException' in System.dll Exception thrown: 'System.Net.WebException' in System.dll Exception thrown: 'System.Net.WebException' in System.dll Exception thrown: 'System.NullReferenceException' in Silanis.ESL.dll Exception thrown: 'Silanis.ESL.SDK.EslException' in Silanis.ESL.dllAnd if it matters we're on Newtonsoft.Json v12.0.2
Reply to: Trouble connecting/downloading packages
Monday, September 9, 2019 at 05:42amSo I've verified it's working when I access the RESTful API directly (it gives 405 Method Not Allowed when I tried /api/sysinfo on the Canadian sandbox, but /api/callback gave the expected result) and for grins I tried the GitHub repo and that worked too, so I suspect you might be right and there's an issue in the corporate network firewall. I'll ask around and see if that resolves it.
Reply to: Trouble connecting/downloading packages
Monday, September 9, 2019 at 07:13amI've been told it isn't the firewall, so I tried out something a little bit different. Since accessing the API directly worked in Postman, I figured I'd try it programmatically.
Public Function TestESignConnection() As String Implements IESLDownloaderSVC.TestESignConnection Dim response As HttpResponseMessage Try _httpClient.DefaultRequestHeaders.Authorization = New AuthenticationHeaderValue("Authorization", "BasicThis gave the same result as the SDK:") _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 Function
"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
Wednesday, September 11, 2019 at 09:02amI've just been told, it's not being routed through a proxy server.
More mysteriously the RESTful API calls aren't giving us socket exceptions when we run them in a different project, but in the normal place it's giving us that "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."
If this isn't something you're familiar with/have had customers run into before, then I guess I'll just have to keep messing around with it.
Reply to: Trouble connecting/downloading packages
Wednesday, September 11, 2019 at 11:51amThat totally worked. For use with the SDK I assume it should just go before we build the client object, correct? Like so:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 _eslClient = New EslClient(ESLAPIKey, ESLServiceURL)
Subscriptions
Topics | Replies | Freshness | Views | Users |
---|---|---|---|---|
I'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.
|
9 | 4 years 6 months ago | 125 |
Subscriptions Release Notes
This user is not subscribed to any release notes.