Select to view content in your preferred language

execute geoprocessing services fails when time exceeds 1 minute

899
2
Jump to solution
01-30-2022 11:18 PM
pragati224
Occasional Contributor

Hi Everyone,

 

I am working on an application created on Arcgis Api for javascript 3.39. I have published some geoprocessing services from ArcGIS Server 10.8.1.

 

I want to execute the geoprocessing services.While running the execute function for geoprocessing services from application, it shows pending in Google Chrome Development Network tools. And fails as soon as it reaches 1min, and returns Cancelled. However, if I rerun it using "Replay XHR" in Google Chrome Developer tools Network option, it executes for more than 1 min and brings result in response body and can be checked in Devtools.

 Once I checked, in ArcGIS Server Manager and updated the client timing to 10 minutes. but again it is giving the same error.

Can anybody bring some light on this to how to handle.

0 Kudos
1 Solution

Accepted Solutions
Noah-Sager
Esri Regular Contributor

Have you tried increasing the value of esriConfig.defaults.io.timeout? The default value is 60 seconds, so I think if you increased it, that would handle this issue.

https://developers.arcgis.com/javascript/3/jshelp/inside_defaults.html

https://developers.arcgis.com/javascript/3/jsapi/esri.config-amd.html#defaults

 

View solution in original post

2 Replies
Noah-Sager
Esri Regular Contributor

Have you tried increasing the value of esriConfig.defaults.io.timeout? The default value is 60 seconds, so I think if you increased it, that would handle this issue.

https://developers.arcgis.com/javascript/3/jshelp/inside_defaults.html

https://developers.arcgis.com/javascript/3/jsapi/esri.config-amd.html#defaults

 

pragati224
Occasional Contributor

Thank You  Noah-Sager it really helped me. 

0 Kudos