Open FR-ADDIX opened 9 months ago
This should work as always. Please make sure t hat the entity "urn:ngsi-ld:Notification:d4d9f07a-d48f-11ee-9932-26575acf9489" actually has at least one of the attributes in the list.
And especially, check the long names, never mind the short names. Look closely at the @context used when creating the subscription and the @context used when creating/updating the entities.
Might be there's a mismatch and the longnames differ => not the same attributes
That said, it might be a bug. I'll look into it once you swear you haven't mixed up your @context :)))
This is of course the same context, as I get all the data without the "attributes" restriction.
This is of course the same context, as I get all the data without the "attributes" restriction.
Well, if you don't give the "attributes" field, the entire entity is included. If you do give the "attributes" field, then it works as a projection and only those attributes included in "attributes" are included in the notification. Entity Id and Type are always included - those two are not considered attributes. So, again, are you sure you have the right @context?
It would be easy enough to look at the subscription inside mongo. And then compare the longnames of the subscription with the longnames of the attributes of the entities.
ok i will check it
If I create a subscription with a selection of attributes to be sent that is to send the notification to an endpoint, only the ID and the type are transmitted. However, the selected attributes are missing completely.
Has the syntax changed for "attributes"?
orion-ld Version 1.4.0 1.5.1 and 1.6.0
REQUEST / SUBSCRIBTION
RESULT