Flow design - Rest Action Socket timeout

Andr_1
Tera Contributor

Hello,

 

I created a new flow on flow design module with a custom action.  This custom action will call an endpoint by a REST STEP, and it's working well.

When I use this action on my flow, after 3/4 minutes I get this error 

Andr_1_0-1709564336977.png

 

I read about it, and the flow/action is waiting for a response from the endpoint. This is a synchronous behavior, but I don't want any response from the endpoint.

So basically I want that my flow runs it in asynchronous mode.

 

How can I change the flow to run in asynchronous mode… so it does not keep waiting on the custom action and will not give me a socket timeout?

 

Thank you

André Ramos



4 REPLIES 4

Muhammad Hamza
Kilo Sage

Hey @Andr_1 ,

I was also facing socket timeout connection issues with the flow designer.

So according to the ServiceNow KB article
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0794032

I created the system properties to extend the timeout. So it fixed the issue.

MuhammadHamza_0-1717810533677.png

 


Hope this helps.

Thanks,

Hamza

 

Rajiv Handa
ServiceNow Employee
ServiceNow Employee

First, this KB article has expired and is no longer available.

Secondly, even in the expired KB article, it's not mentioned anywhere to set this value to an indefinite higher number.

 

These are global properties and hence, are not just tied to the flow designer or workflow, so they should be carefully fiddled with.

Shreya Shah
ServiceNow Employee
ServiceNow Employee

You can explore Retry policy - This allows you to retry the same REST STEP multiple times before it errors out. You can custom define your retry policy based on the use case or use the default HTTP retry policy.

Thank you! I'll check the retry policy. The KB article was up when I was looking into the solution. I'll update my solution. 
Thanks,
Hamza