-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error parsing PolyLine #2423
Comments
the problem is that "paths" are parsed two times: createInstanceFromJson and StringConstructor |
After apply PR #2422 log is a different: time=2024-10-03T09:52:46.441Z | lvl=DEBUG | corr=5ea6163e-37a7-4478-9be6-d9162f12e36f; cbnotif=1 | trans=14090188-6b7b-424b-ade1-c0b19b517923 | srv=N/A | subsrv=N/A | comp=cygnus-ngsi | op=createInstanceFromJson | msg=com.telefonica.iot.cygnus.backends.arcgis.model.Feature[360] : createInstanceFromJson jsonGeometry as JsonObject: {"paths":[[[-0.35552816436737716,39.476706673380434],[-0.35495815176300549,39.477923611969828]]]} |
Maybe getAsString() method is not implemented in that JsonObject. We can try simply with toString() |
Fixed by PR #2422 |
time=2024-10-02T10:40:34.742Z | lvl=ERROR | corr=98ff7a1b-66af-4de9-9010-bb2f609d7882; cbnotif=1 | trans=ae03da2c-067f-4ee8-a830-9d79a6e2d438 | srv=N/A | subsrv=N/A | comp=cygnus-ngsi | op=createInstanceFromJson | msg=com.telefonica.iot.cygnus.backends.arcgis.model.PolyLine[136] : IllegalStateException error null parsing PolyLine from json {"paths":[[[-0.35552816436737716,39.476706673380434],[-0.35495815176300549,39.477923611969828]]]}
The text was updated successfully, but these errors were encountered: