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

hi, it means the connection on network level looks Ok. Please check logs on the target server to see error messages there as well.

And try to set to false the following system property "com.glide.communications.httpclient.verify_hostname" and let us know if it helped.

Hope it helps

Hope it helps

Hi,Appli

Thank you.I tried. But it doesn't work.

This WARNING appears in the log of the mid server

WARNING *** WARNING *** OCSPCheck connection timeout: http://ocsp.digicert.com
WARNING *** WARNING *** Request not sent to uri= https://xxxxx: org.apache.commons.httpclient.HttpException: The host did not accept the connection within timeout of 10000 ms *.xxxx: The host did not accept the connection within timeout of 10000 ms *.xxxxx

Do you have any other ideas? I can't find anything wrong

Hi, please check if outgoing traffic is allowed to the Entrust OCSP server from the MID Server host. MID server requires access to ocsp.entrust.net.

Hope it helps

Hope it helps

panda1
Kilo Guru

hi everyone,By mid server browser, Does the browser refer to the browser of the host where the mid server is located?

My mid server is installed on a Windows server virtual machine

The target server can be opened on the browser of the virtual machine

Can this prove that 2 is normal?

However, the rest API is still timeout

panda1
Kilo Guru