Hi,
When using esri javascript api loading the basemap, errors appear indicating a timeout on the arcgis tile server with dev console open.
Although this doesn't occur every time when loading the map, I still want to avoid the error. Please see the SS for details.
Is there any way to fix the issue by coding?
The version of esri javascript api is 3.18 built by ArcGIS API for JavaScript Web Optimizer.
Thanks,
Leo
Solved! Go to Solution.
Have you tried adjusting the default timeout on the request, e.g. esriConfig.defaults.io.timeout?
Have you tried adjusting the default timeout on the request, e.g. esriConfig.defaults.io.timeout?
Thank you for your reply. I've tried this setting, it seems less error now. Maybe I should set more time. Currently, I set the value to 120000. (2 mins)
Where to change this ?
esriConfig.defaults.io.timeout in V3.
https://developers.arcgis.com/javascript/3/jsapi/esri.config-amd.html
esriConfig.request.timeout in V4.
https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request
P.S. ArcGIS JavaScript API 3.X will be retired on July 1, 2024.
https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/arcgis-api-for-javascript-version...