i got response code "0" for Rest API outbound call. I got an error like "The request failed: java.net.ConnectException: Connection refused: " Please let me know why i got this issue. how to resolve it

pavni
Tera Contributor

i got response code "0" for Rest API outbound call. I got an error like "The request failed: java.net.ConnectException: Connection refused: " Please let me know why i got this issue. how to resolve it

5 REPLIES 5

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

That suggests to me the outbound REST point refused the connection. Are you sure instance is allowed to connect to your external REST point with the user/pass defined for REST?


Hi,


Yes,because we are configuring to external API for change and incident applications. This error code is happening from today from last 2 hours. Is there any server issue to the third partty


sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Well, I can't confirm to you if there is any issue with your 3rd party, right ?



There can be multiple causes:


- 3rd party tool is down


- 3rd party down refuses incoming connection


- 3rd party took is not reachable anymore via internet


- etc, etc



You will need to check with the 3rd party provider if they have an issue with their application as a first step.


Ujjawal Vishnoi
Mega Sage
Mega Sage

Hi Pavani,



It seems that application you are trying to hit is not reachable from servicenow end. May be down or you changed some setup and hence not reachable with new setup. Are you using Mid server for this if yes then check at that level too. Also check ecc queue for log.



Hope this helps.



Regards


Ujjawal