API stream being disconnected

  • 1
  • Question
  • Updated 3 months ago
A couple weeks ago our web application stopped send contracts via the API, I have confirmed that TLS1.2 is enabled.  the error the server is getting is as follows:

{System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream.

We have not made any changes to our site between the time it was last functional and the time it broke.

Thanks,

Jason Doleshall
Photo of Jason

Jason

  • 5 Posts
  • 0 Reply Likes

Posted 3 months ago

  • 1
Photo of Jason

Jason

  • 5 Posts
  • 0 Reply Likes
How often does the API support look at these forums?
Photo of Kelly Leeman

Kelly Leeman, Employee, Software Engineer

  • 63 Posts
  • 5 Reply Likes
Hi Jason, if you started receiving this error on june 1st then the issue is very likely your tls setting.  You can also test your api keys with applications like postman to verify that nothing is wrong with the api key or the call that you are making.
Photo of Jason

Jason

  • 5 Posts
  • 0 Reply Likes
I have confirmed that the TLS is enabled on the server and verified using a different server.  I have double checked the tokens as well and they match what is assigned to my account.
Photo of Kelly Leeman

Kelly Leeman, Employee, Software Engineer

  • 63 Posts
  • 5 Reply Likes
what about within your application?
Photo of Kelly Leeman

Kelly Leeman, Employee, Software Engineer

  • 63 Posts
  • 5 Reply Likes
do you have other tls versions enabled?  
Photo of Jason

Jason

  • 5 Posts
  • 0 Reply Likes
Looks like the issue was an incorrect TLS version, this is working now.
Photo of Jason

Jason

  • 5 Posts
  • 0 Reply Likes
I have forced tls 1.2 within the application and I was able to send a test contract.