Hi Guys,
I'm using the esri request to retrieve layer Info from a map service. The call works fine and i'm able to retrieve the data, however now i want to check if url provided to make the request is valid or not. I've tried using the "timeOut" parameter but it only throws an error after 1 minute which i understand is the default setting. Any ideas?
Thanks, Ryan
I've tried the following code:
esriRequest({
"url": url,
"callbackParamName": "callback",
"content": { "f": "json" },
"handleAs": "json",
"timeOut": 5000
});
Solved! Go to Solution.
Hi Ryan Smith,
Did you try to change the defaults ?
esri.config.defaults.io.timeout = 5000;
Try it, please.
Anyways, Hope this help you.
Regards,
Yusuf
Hi Ryan Smith,
Did you try to change the defaults ?
esri.config.defaults.io.timeout = 5000;
Try it, please.
Anyways, Hope this help you.
Regards,
Yusuf
Hi Yusuf,
That worked for me. Thanks!
Regard,
Ryan