Closed mariohese closed 5 years ago
I am more than sure there are plenty of bugs in orionld ... Keep in mind that this is a work in progress, first alpha release planned for October this year. I'm a bit busy at the moment but I promise to look into these problems you are facing as soon as I havre a bit of time over.
One thing that would help would be if you could edit the issue text and "pretty-print" the json payloads. Really difficult to read it when on a single line. Like this:
curl http://localhost:1026/ngsi-ld/v1/entities/ -H 'Content-Type:application/ld+json' -iX POST
-d '{
"id": "urn:ngsi-ld:Vehicle:A4568",
"type": "Vehicle",
"brandName": {
"type": "Property", ...
I have just edited the text for making it eassier to see. Thank you very much.
Problem found and fixed (hopefully), waiting for travis tests to accept PR #98
PR #98 finally landed in the develop branch. Please try again, with the new develop and let me know.
@mariohese: sorry for taking so long and thank you for finding these bugs for me! :)
Thank you very much for fixing it, it works as expected:) Now, with you permission, I proceed to close the issue.
Hi, I think that it exists a problem with the timestamps in format ISO 8601 when receiving the notification data related to a subscription. When I post an entity like the one in https://github.com/FIWARE/NGSI-LD_Experimental/blob/master/doc/example-code.md
I get the field observedAt correctly with a GET request: curl "http://localhost:1026/ngsi-ld/v1/entities?type=Vehicle" -H "Accept: application/ld+json"
But when I create a subscription for getting that entity
I get the following response:
With content-type: application/json
As it can be seen, in my subscription I specify that I want my notifications to have content in ld+json format instead of json and the field observedAt is empty in the notification. I am using docker-compose.
Furthermore, I was wondering if I could get in the notifications the creDate and modDate fields of the objects saved in Orion with a subscription.