Hi Guys,
I am getting this error message when it is calling a map service with esriRequest object in webappbuilder widget.
Below is the code snippet
esriRequest({
url: this.url,
content: {
f: 'json'
},
handleAs: 'json'
}).then(lang.hitch(this, function (response) {
console.log("successfully call");
}
this.emit('details-loaded', response);
}), lang.hitch(this,function(error){
console.log("got error");
console.log(error);
}));Below is the error log
TypeError: Cannot read property '3' of null
at new f (https://js.arcgis.com/3.17/init.js:450:489)
at Object.c.urlToObject (https://js.arcgis.com/3.17/init.js:700:111)
at Object.c.getProxyUrl (https://js.arcgis.com/3.17/init.js:701:272