Select to view content in your preferred language

JavaScript 4.x issue with Stream Layers

247
2
11-10-2024 05:59 PM
RichardNicholas1
Emerging Contributor

Our development team are encountering errors with a stream layer after upgrading from JavaScript version 3.x to 4.x:

Issue – Stream layer not returning data 

Issue description

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.

This application has a stream layer that brings data into the map from the GeoEvent server.  This function is working with ArcGIS Server 11.1 and JavaScript 3.x code however is not working with the JavaScript 4.x code.

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.

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.

Mini test app:

RichardNicholas1_0-1731290221063.png

However, after a while, an error appears in the console and no data is returned to the application.

RichardNicholas1_1-1731290221071.png

Has anyone experienced similar issues, or have any suggestions for resolving these errors?

 

2 Replies
ANH
by
Occasional Contributor

Currently having the same issue... Haven't found a fix for it yet. The only change is the JS version.

UndralBatsukh
Esri Regular Contributor

Hi there, 

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

0 Kudos