Get java.net.SocketException: Socket is closed on an HTTP call.

Nicol_
Giga Contributor

Sometimes happen to get this error calling a third-party API.

It seems to not be related to any changes. Any idea how to solve?

0 Request not sent to uri= https://xxx/api/open/query/do?query=nodes%7Ccount : java.net.SocketException: Socket is closed

Thanks

6 REPLIES 6

Siva
Tera Expert

Hello , 

 

 I am not sure if this issue has been resolved, but mid server is in the expected network and if we hit URL in the browser with needed VPN enabled , response is being obtained. However, if we use the same MidServer installed in that VPN n/w and connect to the third party API through the midserver , response is not being obtained and 

java.net.SocketException: Socket is closed

 

is the error that am receiving in the Test run when tested, ports 443 and 80 are also open. Is there anything that should be looked into to overcome this issue. 

 

 

Regards, 

Siva.

shiksha jain
Kilo Contributor

Hi

I Facing same issue any update on this about how it get resolved?

Regards

Shiksha jain

Sandhya7
Tera Contributor

We are facing the same issue. Please provide update on how to resolve this issue

Hello Team,

I have the same problem, and I'm not using a MID server. There are no restrictions blocking anything, and I've allowed all IP traffic to my AWS EC2 instance.

I can successfully use the API with Python and Postman, but I encounter issues when trying to connect from ServiceNow.