REST Step POST Flow Designer Error

Rachna S
Tera Guru

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

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Is this happening always or sometimes?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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.

 

@Rachna S 

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)

https://developer.servicenow.com/dev.do#!/reference/api/orlando/server/sn_ws-namespace/c_RESTMessage...

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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 ?