use Outbound rest api send request by midServer get StatusCode :0 The request failed: Request not sent to uri....

panda1
Kilo Guru

I send an outbound request to the target server through the mid server

 StatusCode:0

error message:The request failed: Request not sent to uri= xxxxx: org.apache.commons.httpclient.HttpException: The host did not accept the connection within timeout of 10000 ms *.xxxx

This looks like a network connect problem

 

My route looks like this:

ServiceNow -> Mid Server(in my local PC)  -> target Server

1.ServiceNow -> Mid Server(in my local PC) 

mid Server's Status is Up   and  mid Server's Validated  is Yes  

Can this indicate that the connection from servicenow to mid server is normal?

2.MidServer(in my local PC)  -> target Server

in my local PC  ,ping target Server is normal ,This indicates that my PC to target server is normal

Can this indicate that the connection from mid server to target Server is normal?

 

Does it seem that the mid server and the target server cannot be connected?

Is there any way to verify my idea? I don't know what to do

and What other circumstances may cause this problem?

supplement:The target server is running normally, and other applications on my local PC can directly access it

10 REPLIES 10

Appli
Mega Sage
Mega Sage

Hi,

1) Ok

2) You still need to check if MID server can reach the target server over the port of REST endpoint. Consider to call REST web service URL from the browser on MID server, to see if the request will timeout or not.

Hope it helps

Hope it helps

Thank you.Can you tell me how to confirm 2

Yes login to the mid server open up a browser inside the mid server try accessing the url to see if you can access and see if you are getting a similar behaviour to what you see in your local browser

What is the browser of mid server?

Is it the local browser where my mid server is installed?

I tried. The local browser on the server where my mid server is located can open this URL