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:
However, after a while, an error appears in the console and no data is returned to the application.
Has anyone experienced similar issues, or have any suggestions for resolving these errors?
Currently having the same issue... Haven't found a fix for it yet. The only change is the JS version.
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