Select to view content in your preferred language

timeout setting

1810
1
Jump to solution
08-08-2018 11:09 PM
anjelinaponkerat
Frequent Contributor

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

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;
});