AnsweredAssumed Answered

"Cannot read property '3' of null" WebAppBuilder Custom Widget

Question asked by thanhtetaung on Feb 2, 2017
Latest reply on Mar 10, 2017 by thanhtetaung

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)
at u (https://js.arcgis.com/3.17/init.js:859:368)
at e (https://js.arcgis.com/3.17/init.js:864:490)
at z (https://js.arcgis.com/3.17/init.js:871:60)
at Object._getServiceDetails (https://hseqmap.wde.woodside.com.au/map/widgets/HSEQMap/clusterfeaturelayer.js?wab_dv=2.1:241:17)
at Object.constructor (https://hseqmap.wde.woodside.com.au/map/widgets/HSEQMap/clusterfeaturelayer.js?wab_dv=2.1:235:22)
at Object.advice (https://js.arcgis.com/3.17/init.js:119:199)
at Object.c (https://js.arcgis.com/3.17/init.js:118:492)

 

 

Currently all the querytask, esrirequest and geometry task are failed to call or filter through map service. 

We are using the esri proxy in the builder also.

 

Would like to understand when will that error occur and what item map specifically causing this error?

 

 

Best Regards,

Than Htet Aung

Outcomes