Outbound REST API - The request failed: java.net.SocketTimeoutException: connect timed out when posting to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2019 09:36 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2021 01:14 AM
Have u got the solution

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2021 05:29 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2021 05:28 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2023 08:17 AM
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