timeout setting

1327
1
Jump to solution
08-08-2018 11:09 PM
anjelinaponkerat
Occasional Contributor II

I,m using ajs api 4.8 and I,m going to run a service that it take more than one minute(60 second) and js cancell my service, how can I set more timeout number like 45 minutes?

1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Anjelina,

   Here is what you need to increase it to 2 minutes:

require(["esri/config"], function(esriConfig) {
  esriConfig.request.timeout= 120000;
});

View solution in original post

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Anjelina,

   Here is what you need to increase it to 2 minutes:

require(["esri/config"], function(esriConfig) {
  esriConfig.request.timeout= 120000;
});
0 Kudos