Search code examples
.netnetsuitewebapi

Netsuite restlet calls from .Net Api started to give errors


I am using token based authentication for calling netsuite restlets from my .Net WebAPIs. It has been working well, but since yesterday I started getting this below error on Netsuite sandbox. I don’t see any code change that could have resulted to this. Can anyone point me to the right direction?

System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host


Solution

  • Probably a TLS issue as their sandbox has removed TLS 1.0/1.1

    https://stackoverflow.com/a/46944838/266509