Closed efbenson closed 6 years ago
Can you provide the full request URL issued by AGOL that leads to this error?
@efbenson - can you provide steps to reproduce? I have
1) Started koop server 2) Add a FeatureServer item to AGOL 3) Opened the new AGOL item in MapViewer 4) Opened the layer's attribute table
I get no modal error with the steps above.
I played with postman and was enabling and disabling each param. I found disabling returnGeometry being sent made it work, but returnGeometry by itself also worked. A bunch of requests later it was narrowed to the 2.
.../koop/htrack-lastPositions/FeatureServer/0/query?f=json&where=1%3D1&returnGeometry=false&spatialRel=esriSpatialRelIntersects&outFields=*&orderByFields=dateTime%20ASC&outSR=102100&resultOffset=0&resultRecordCount=50
I tested your query string with a Postman request to koop using the file-geojson provider. I had a successful response without any error. Are you setting metadata with your provider? If so, could you post? It's possible the issue may lie there.
I got it, updating our koop version fixed it. With that I noticed errors with
WARNING: requested provider's metadata field "receivedTime (esriFieldTypeDate)" not found in feature properties)
Looking into it, we at some point probably 2 years ago we found setting the types as esri types in our meta data made AGOL work better, but I will play around with dropping back to the native types.
It's just a warning, intended to let you know that you have set a metadata field named receivedTime
that isn't showing up in the GeoJSON properties
object (perhaps it's not being added in the translation function?). If that warning is showing up for unrelated reasons, please let us know. Thanks.
It seems contradictory to have them both sent, but AGOL does it when opening the grid of a layer in the map viewer and it throws a modal error.
I console dir'ed the params for esrify and properties are null.
This is a regression at some point, it was working a before at 1.12.5