<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic &amp;quot;Cannot read property '3' of null&amp;quot; WebAppBuilder Custom Widget in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/quot-cannot-read-property-3-of-null-quot/m-p/794226#M4444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting this error message when it is calling a map service with esriRequest object in webappbuilder widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code snippet&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; esriRequest({
 &amp;nbsp;&amp;nbsp;&amp;nbsp;url: this.url,
 &amp;nbsp;&amp;nbsp;&amp;nbsp;content: {
 &amp;nbsp;&amp;nbsp;&amp;nbsp;f: 'json'
 },
 &amp;nbsp;&amp;nbsp;&amp;nbsp;handleAs: 'json'
 }).then(lang.hitch(this, function (response) {
 &amp;nbsp;&amp;nbsp;&amp;nbsp;console.log("successfully call");
 }
 this.emit('details-loaded', response);
 }), lang.hitch(this,function(error){
&amp;nbsp;&amp;nbsp;&amp;nbsp;console.log("got error");
&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(error);
 }));&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the error log&lt;/P&gt;&lt;P&gt;TypeError: Cannot read property '3' of null&lt;BR /&gt;&lt;SPAN&gt; at new f (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A450%3A489" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:450:489&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.c.urlToObject (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A700%3A111" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:700:111&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.c.getProxyUrl (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A701%3A272" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:701:272&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at u (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A859%3A368" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:859:368&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at e (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A864%3A490" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:864:490&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at z (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A871%3A60" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:871:60&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object._getServiceDetails (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fhseqmap.wde.woodside.com.au%2Fmap%2Fwidgets%2FHSEQMap%2Fclusterfeaturelayer.js%3Fwab_dv%3D2.1%3A241%3A17" target="_blank"&gt;https://hseqmap.wde.woodside.com.au/map/widgets/HSEQMap/clusterfeaturelayer.js?wab_dv=2.1:241:17&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.constructor (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fhseqmap.wde.woodside.com.au%2Fmap%2Fwidgets%2FHSEQMap%2Fclusterfeaturelayer.js%3Fwab_dv%3D2.1%3A235%3A22" target="_blank"&gt;https://hseqmap.wde.woodside.com.au/map/widgets/HSEQMap/clusterfeaturelayer.js?wab_dv=2.1:235:22&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.advice (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A119%3A199" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:119:199&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.c (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A118%3A492" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:118:492&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently all the querytask, esrirequest and geometry task are failed to call or filter through map service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using the esri proxy in the builder also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would like to understand when will that error occur and what item map specifically causing this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Than Htet Aung&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:55:30 GMT</pubDate>
    <dc:creator>Than_HtetAung</dc:creator>
    <dc:date>2021-12-12T16:55:30Z</dc:date>
    <item>
      <title>"Cannot read property '3' of null" WebAppBuilder Custom Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/quot-cannot-read-property-3-of-null-quot/m-p/794226#M4444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting this error message when it is calling a map service with esriRequest object in webappbuilder widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code snippet&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; esriRequest({
 &amp;nbsp;&amp;nbsp;&amp;nbsp;url: this.url,
 &amp;nbsp;&amp;nbsp;&amp;nbsp;content: {
 &amp;nbsp;&amp;nbsp;&amp;nbsp;f: 'json'
 },
 &amp;nbsp;&amp;nbsp;&amp;nbsp;handleAs: 'json'
 }).then(lang.hitch(this, function (response) {
 &amp;nbsp;&amp;nbsp;&amp;nbsp;console.log("successfully call");
 }
 this.emit('details-loaded', response);
 }), lang.hitch(this,function(error){
&amp;nbsp;&amp;nbsp;&amp;nbsp;console.log("got error");
&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(error);
 }));&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the error log&lt;/P&gt;&lt;P&gt;TypeError: Cannot read property '3' of null&lt;BR /&gt;&lt;SPAN&gt; at new f (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A450%3A489" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:450:489&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.c.urlToObject (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A700%3A111" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:700:111&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.c.getProxyUrl (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A701%3A272" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:701:272&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at u (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A859%3A368" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:859:368&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at e (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A864%3A490" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:864:490&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at z (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A871%3A60" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:871:60&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object._getServiceDetails (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fhseqmap.wde.woodside.com.au%2Fmap%2Fwidgets%2FHSEQMap%2Fclusterfeaturelayer.js%3Fwab_dv%3D2.1%3A241%3A17" target="_blank"&gt;https://hseqmap.wde.woodside.com.au/map/widgets/HSEQMap/clusterfeaturelayer.js?wab_dv=2.1:241:17&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.constructor (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fhseqmap.wde.woodside.com.au%2Fmap%2Fwidgets%2FHSEQMap%2Fclusterfeaturelayer.js%3Fwab_dv%3D2.1%3A235%3A22" target="_blank"&gt;https://hseqmap.wde.woodside.com.au/map/widgets/HSEQMap/clusterfeaturelayer.js?wab_dv=2.1:235:22&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.advice (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A119%3A199" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:119:199&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at Object.c (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.17%2Finit.js%3A118%3A492" target="_blank"&gt;https://js.arcgis.com/3.17/init.js:118:492&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently all the querytask, esrirequest and geometry task are failed to call or filter through map service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using the esri proxy in the builder also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would like to understand when will that error occur and what item map specifically causing this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Than Htet Aung&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/quot-cannot-read-property-3-of-null-quot/m-p/794226#M4444</guid>
      <dc:creator>Than_HtetAung</dc:creator>
      <dc:date>2021-12-12T16:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: "Cannot read property '3' of null" WebAppBuilder Custom Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/quot-cannot-read-property-3-of-null-quot/m-p/794227#M4445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem when I use esri boilerplate template and try to open the index html directly. But in the IDE environment, it works fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone&amp;nbsp;knows to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 00:43:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/quot-cannot-read-property-3-of-null-quot/m-p/794227#M4445</guid>
      <dc:creator>Yunpiao_WhitneyBai1</dc:creator>
      <dc:date>2017-03-10T00:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: "Cannot read property '3' of null" WebAppBuilder Custom Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/quot-cannot-read-property-3-of-null-quot/m-p/794228#M4446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have fixed it by fixing proxy url in config.json file. Found out there is typo error in url.&lt;/P&gt;&lt;P&gt;==&amp;gt;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Object.c.getProxyUrl&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;So I will suggest, try to read from error stack and check one level by another.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Most of the time configuration has issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Than&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2017 06:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/quot-cannot-read-property-3-of-null-quot/m-p/794228#M4446</guid>
      <dc:creator>Than_HtetAung</dc:creator>
      <dc:date>2017-03-11T06:10:08Z</dc:date>
    </item>
  </channel>
</rss>

