<?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 JavaScript 4.x issue with Stream Layers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-4-x-issue-with-stream-layers/m-p/1557177#M86054</link>
    <description>&lt;P&gt;Our development team are encountering errors with a stream layer after upgrading from JavaScript version 3.x to 4.x:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue&lt;/STRONG&gt; – Stream layer not returning data&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue description&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We have an application environment that has just gone through an update to ArcGIS Server 11.1 and we are upgrading the application code from JavaScript 3.x to 4.x.&lt;/P&gt;&lt;P&gt;This application has a stream layer that brings data into the map from the GeoEvent server.&amp;nbsp; This function is working with ArcGIS Server 11.1 and JavaScript 3.x code however is not working with the JavaScript 4.x code.&lt;/P&gt;&lt;P&gt;Our GeoEvent Server instance, version 11.1, has custom GeoEvent Adaptors written in Java. These convert custom XML formats to attributes and features, ready for insertion into the various stream layers. We have not made any changes to our adaptors in this time and so do not have any reason to believe that they are the problem. Also, the WebSocket error message that we are receiving states that the stream layer payload is missing a wkid value, but this value is clearly visible in both GeoEvent server and browser devtools.&lt;/P&gt;&lt;P&gt;What we are seeing is that the stream layer is created and added to the map. The connection is ok, and the initial handshake is successful.&lt;/P&gt;&lt;P&gt;Mini test app:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardNicholas1_0-1731290221063.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119233i8FBC7DE5DEEAA7F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardNicholas1_0-1731290221063.png" alt="RichardNicholas1_0-1731290221063.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, after a while, an error appears in the console and no data is returned to the application.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardNicholas1_1-1731290221071.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119232i668B8836BDFD2EBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardNicholas1_1-1731290221071.png" alt="RichardNicholas1_1-1731290221071.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Has anyone experienced similar issues, or have any suggestions for resolving these errors?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2024 01:59:34 GMT</pubDate>
    <dc:creator>RichardNicholas1</dc:creator>
    <dc:date>2024-11-11T01:59:34Z</dc:date>
    <item>
      <title>JavaScript 4.x issue with Stream Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-4-x-issue-with-stream-layers/m-p/1557177#M86054</link>
      <description>&lt;P&gt;Our development team are encountering errors with a stream layer after upgrading from JavaScript version 3.x to 4.x:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue&lt;/STRONG&gt; – Stream layer not returning data&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue description&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We have an application environment that has just gone through an update to ArcGIS Server 11.1 and we are upgrading the application code from JavaScript 3.x to 4.x.&lt;/P&gt;&lt;P&gt;This application has a stream layer that brings data into the map from the GeoEvent server.&amp;nbsp; This function is working with ArcGIS Server 11.1 and JavaScript 3.x code however is not working with the JavaScript 4.x code.&lt;/P&gt;&lt;P&gt;Our GeoEvent Server instance, version 11.1, has custom GeoEvent Adaptors written in Java. These convert custom XML formats to attributes and features, ready for insertion into the various stream layers. We have not made any changes to our adaptors in this time and so do not have any reason to believe that they are the problem. Also, the WebSocket error message that we are receiving states that the stream layer payload is missing a wkid value, but this value is clearly visible in both GeoEvent server and browser devtools.&lt;/P&gt;&lt;P&gt;What we are seeing is that the stream layer is created and added to the map. The connection is ok, and the initial handshake is successful.&lt;/P&gt;&lt;P&gt;Mini test app:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardNicholas1_0-1731290221063.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119233i8FBC7DE5DEEAA7F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardNicholas1_0-1731290221063.png" alt="RichardNicholas1_0-1731290221063.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, after a while, an error appears in the console and no data is returned to the application.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardNicholas1_1-1731290221071.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119232i668B8836BDFD2EBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardNicholas1_1-1731290221071.png" alt="RichardNicholas1_1-1731290221071.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Has anyone experienced similar issues, or have any suggestions for resolving these errors?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 01:59:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-4-x-issue-with-stream-layers/m-p/1557177#M86054</guid>
      <dc:creator>RichardNicholas1</dc:creator>
      <dc:date>2024-11-11T01:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript 4.x issue with Stream Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-4-x-issue-with-stream-layers/m-p/1557371#M86056</link>
      <description>&lt;P&gt;Currently having the same issue... Haven't found a fix for it yet. The only change is the JS version.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 00:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-4-x-issue-with-stream-layers/m-p/1557371#M86056</guid>
      <dc:creator>ANH</dc:creator>
      <dc:date>2024-11-12T00:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript 4.x issue with Stream Layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-4-x-issue-with-stream-layers/m-p/1558796#M86071</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is it possible for you share you stream service with us so that we can investigate? You can direct message me if you do not want to share it publicly. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 18:36:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-4-x-issue-with-stream-layers/m-p/1558796#M86071</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2024-11-14T18:36:16Z</dc:date>
    </item>
  </channel>
</rss>

