AnsweredAssumed Answered

Invalid JSON message

Question asked by Supaidaman on Feb 6, 2020
Latest reply on Feb 11, 2020 by Supaidaman

Hello,

I've been trying to consume a Feature Service endpoint that was recently generated but I always get the following message at Qt Creator:

 

Exception at 0x7ffe0b0fa839, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in runtimecore!RT_UtilityTraversability_fromJSON

The map loads but not the Feature Service Layer.

 

With other urls the service works as intended, which makes me think that something might be wrong with my Feature Server but I have no clue what since this error message is very generic.

 

Here's how I'm trying to just load it, I got it straight from the example:

 

I do have a more complex application but right now I only want to display this feature layer to check its availability.

FeatureLayer {
                id: featureLayer
                ServiceFeatureTable {
                    id: featureTable
                    url: "featureServiceURL"
                }
            }
            onLoadStatusChanged: {
                if (loadStatus === Enums.LoadStatusLoaded) {
                    mapView.setViewpoint(viewPoint);
                }
            }
        }
        // initial viewpoint
        ViewpointCenter {
            id: viewPoint
            Point {
                x:  -42.97
                y:  21.1
                spatialReference: SpatialReference {
                    wkid: 4674
                }
            }
            targetScale: 3e7
        }

 

We use a hosted ArcGis Server in one of our servers.

 

Thanks\!

Outcomes