Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Outound REST message - java.net.SocketException: Socket Closed

Shreyoshi1
Giga Contributor

Hi All,

I am facing a java.net.SocketException: Socket Closed exception while trying to post a request to a 3rd party URL. This works fine via postman and issue occurs only when trying via Servicenow

 

2 REPLIES 2

Kashyap G
Tera Expert

@Shreyoshi1 

 

Did you consider whitelisting the instance IP in your firewall?

 

Please check your IP information of your instance here:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0538621

 

Best regards,

Kashyap G

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.