REST Step POST Flow Designer Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2021 11:07 PM
Hello All,
We are getting the following error on making a Post REST call to certain endpoints-
Operation(Failed Delink Request Monitoring Subflow.ef25c0cbdb0ae0106e556e8cd396195b.a62540cbdb0ae0106e556e8cd396190c) failed with error: com.snc.process_flow.exception.OpException: Request not sent to uri= http://XXXX : java.net.ConnectException: Connection timed out (Connection timed out)
at com.snc.process_flow.operation.AbstractHttpOperation.processError(AbstractHttpOperation.java:201)
at com.snc.process_flow.operation.AbstractHttpOperation.requestAndProcessResponse(AbstractHttpOperation.java:129)
at com.snc.process_flow.operation.AbstractHttpOperation.invoke(AbstractHttpOperation.java:111)
at com.snc.process_flow.operation.RetryableIntegrationOperation.run(RetryableIntegrationOperation.java:46)
at com.snc.process_flow.engine.Operation.execute(Operation.java:165)
at com.snc.process_flow.engine.ProcessEngine.executeOps(ProcessEngine.java:497)
at com.snc.process_flow.engine.ProcessEngine.run(ProcessEngine.java:413)
at com.snc.process_flow.engine.ProcessAutomation.run(ProcessAutomation.java:66)
at com.snc.process_flow.engine.MidProcessAutomation.messageFlow(MidProcessAutomation.java:55)
at com.service_now.mid.probe.IPaaSActionProbe.probe(IPaaSActionProbe.java:101)
at com.service_now.mid.probe.AProbe.process(AProbe.java:104)
at com.service_now.mid.queue_worker.AWorker.runWorker(AWorker.java:122)
at com.service_now.mid.queue_worker.AWorkerThread.run(AWorkerThread.java:20)
at com.service_now.mid.threadpool.ResourceUserQueue$RunnableProxy.run(ResourceUserQueue.java:647)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Can someone please explain what this means ?
PS: I have changed the URI for privacy reasons
Thank you
- Labels:
-
Orchestration (ITOM)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2021 11:35 PM
Hi,
Is this happening always or sometimes?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2021 11:58 PM
Hi Ankur,
We have 4 different endpoints and this happens with 2 out of 4. And it happens every time with those endpoints.
The others work fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2021 12:03 AM
you can try to increase the timeout property value
you can try increasing the timeout for Outbound REST.
- Property:
glide.http.outbound.max_timeout
- Description: Specifies the number of seconds that RESTMessageV2 and SOAPMessageV2 APIs wait for a response from a synchronous call. The maximum value is 30 seconds.
How to increase the timeout for a REST response? (ECCResponseTimeoutException)
https://hi.service-now.com/kb_view.do?sysparm_article=KB0694711
Another method is while you are consuming the Rest message using script you can use this method
setHttpTimeout(Number timeoutMs)
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2021 01:08 AM
Hi Ankur,
Thank you for your response. However I am using flow designer to make a REST call. Any advise on how I can add timeout or waitfor function in a flow designer please ?