Amit
Amit

Reputation: 2565

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

Upvotes: 0

Views: 1267

Answers (2)

Erick Smith
Erick Smith

Reputation: 930

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

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

Upvotes: 1

Tyler Cone
Tyler Cone

Reputation: 9

I figure that you probably are looking for a Netsuite / Suitescript specific answer but in-case it helps, the following is a thread on the exception string you are reading:

An existing connection was forcibly closed by the remote host

Upvotes: 0

Related Questions