Outbound REST API - The request failed: java.net.SocketTimeoutException: connect timed out when posting to

bnath
Tera Contributor

We have been troubleshooting an issue with mid server connectivity to jira for a while now.  We are also working with support, but wondering if anyone has run into anything like this before.

1. We are using a midserver with a proxy configured to connect to our jira instance.

2. I can use postman from the mid server to make the API call and it is successful.

3. When I run the same test from the configured REST message I get....The request failed: java.net.SocketTimeoutException: connect timed out when posting to

4. Yes, I have confirmed the credentials configured in the REST message are correct.

5. I have confirmed with our network team that access is open and that is confirmed by using postman with the proxy.

6. We are on London Patch 5

Thoughts anyone?

 

8 REPLIES 8

Have u got the solution

Disha, 

I think the issue might be because of large payload or slow connections. Try below solutions, it worked for me when i got same issue. On the midserver config file add below property 

 

<!-- *************************************************************************************
* LESS COMMON OPTIONAL Parameters
*
* There are other parameters available for more specialized needs. These optional
* parameters are documented in the ServiceNow product documentation at the URL below:
*
* https://docs.servicenow.com/csh?topicname=c_MIDServerConfiguration.html&version=latest
************************************************************************************* -->

<parameter name="glide.http.timeout" value="1800000" />

 

 

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

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

Chay2
Mega Guru

Hi Amit,

I think the issue might be because of large payload or slow connections. Try below solutions, it worked for me when i got same issue. On the midserver config file add below property 

 

<!-- *************************************************************************************
* LESS COMMON OPTIONAL Parameters
*
* There are other parameters available for more specialized needs. These optional
* parameters are documented in the ServiceNow product documentation at the URL below:
*
* https://docs.servicenow.com/csh?topicname=c_MIDServerConfiguration.html&version=latest
************************************************************************************* -->

<parameter name="glide.http.timeout" value="1800000" />

 

 

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

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

 

 

Amit Bindal
Tera Contributor

Hi All,

 

This issue is related to MID Server certificates. You will have to install certificate so that your MID Server is able to connect to third party APIs like AWS, Azure etc and all that depends on your java bundle being used by MID Server if it is server java or Mid Server java bundle.

 

Thanks

Amit Bindal