How to avoid the 'timeout exceeded' error when using esri javascript api 3.X?

6206
4
Jump to solution
02-16-2018 01:18 AM
LeoDeng
Occasional Contributor II

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

0 Kudos
1 Solution

Accepted Solutions
ChrisSmith7
Frequent Contributor

Have you tried adjusting the default timeout on the request, e.g. esriConfig.defaults.io.timeout?

View solution in original post

4 Replies
ChrisSmith7
Frequent Contributor

Have you tried adjusting the default timeout on the request, e.g. esriConfig.defaults.io.timeout?

LeoDeng
Occasional Contributor II

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)

0 Kudos
TarunMeher
New Contributor

Where to change this ?

0 Kudos
LeoDeng
Occasional Contributor II
0 Kudos