IntegrationHub Action Socket timeout exception while calling through flow api

Prashant Kashya
Kilo Explorer

Hi All,

I am getting Socket timeout exception while calling integration hub action using flow api i.e. sn_fd.FlowAPI.executeAction('action_name', inputs, 900000) even after i passed optional 3rd timeout parameter.

I also did set up the system property ("com.glide.hub.flow_api.default_execution_time") of integer type with default value of 30000 ms. But as mentioned in docs this value is not getting overridden also with 900000 ms value i passed as 3rd parameter.

I also found that it is getting timeout at 175 seconds which is default value of system property i.e. "glide.http.timeout". I dont want to increase value for this http system property as it will effect whole instance, Is there any way to increase the timeout value at integrationhub action side only?

Thanks

1 REPLY 1

Swarup Patra
Kilo Guru


Unfortunately, as of now, there is no direct way to increase the timeout value specifically for IntegrationHub actions. The timeout value for the IntegrationHub actions is controlled by the system property "glide.http.timeout".

However, you can consider the following workaround:

1. Create a custom REST Message HTTP Method for the endpoint you are trying to reach.
2. In the REST Message HTTP Method, you can specify a timeout value that is specific to that HTTP request.
3. Use this custom REST Message HTTP Method in your IntegrationHub action.

Please note that this workaround might not be suitable for all scenarios and it's always recommended to optimize the performance of the endpoint you are trying to reach to avoid such timeout issues.

Also, it's important to understand that increasing the timeout value might lead to other issues like resource contention and could potentially impact the performance of your ServiceNow instance.

Always test thoroughly in a sub-production environment before implementing any changes in the production environment.


nowKB.com
If you want to know any information about Service Now . Visit to https://nowkb.com/home