Skip to content
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

MEASURES-002 error should include all device/groups expression defined when log error #1655

Closed
AlvaroVega opened this issue Sep 18, 2024 · 4 comments

Comments

@AlvaroVega
Copy link
Member

AlvaroVega commented Sep 18, 2024

Component

No response

Is your feature request related to a problem? Please describe

No response

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

The systemd version you checked that didn't have the feature you are asking for

No response

From https://github.com/telefonicasc/VentanillaUnicaSC/issues/66

@AlvaroVega
Copy link
Member Author

AlvaroVega commented Sep 18, 2024

related with #1582

@AlvaroVega AlvaroVega changed the title MEASURES-002 error should include also input measure when log error MEASURES-002 error should all device/groups expression defined when log error Sep 18, 2024
@AlvaroVega
Copy link
Member Author

AlvaroVega commented Sep 18, 2024

For example sending a mesaure like:

$ curl -i -X POST 'http://localhost:7897/iot/json?i=disp1&k=APIKEY1' -d '{ "TimeInstant": "2024-09-18T08:56:19.425000+02:00"}' -H 'content-type: application/json'

And no expressions defined in group/device attributes.

Produces de following log:

time=2024-09-18T07:37:04.229Z | lvl=ERROR | corr=e7078978-e14d-4b37-9962-13858e15f478 | trans=e7078978-e14d-4b37-9962-13858e15f478 | op=IOTAJSON.HTTP.Binding | from=n/a | srv=n/a | subsrv=n/a | msg=MEASURES-002: Couldn't send the updated values to the Context Broker due to an error: {"name":"ENTITY_GENERIC_ERROR","message":"Error accesing entity data for device: thing:disp1 of type: thing and {"timestamp":true,"defaultResource":"/iot/json","explicitAttrs":false,"multiCore":false,"relaxTemplateValidation":false,"defaultEntityNameConjunction":":","defaultType":"Thing","_id":"66c46db351c4502ed9099258","lazy":[],"active":[{"object_id":"a","name":"a","type":"Text","metadata":{}},{"object_id":"b","name":"b","type":"Number","expression":"55","metadata":{}},{"object_id":"temp","name":"temp","type":"Number","expression":"temp + 14","metadata":{"unit":{"type":"text","value":"cms","expression":"\"hola\"+\"adios\""}}}],"commands":[],"staticAttributes":[{"name":"precio","type":"number","value":66},{"name":"color","type":"string","value":"blue","metadata":{"units":{"type":"text","value":"cms"}}}],"creationDate":"2024-08-20T10:19:31.844Z","id":"disp1","type":"thing","name":"thing:disp1","service":"smartcity","subservice":"/","internalId":null,"apikey":"APIKEY1","protocol":"IoTA-JSON","transport":"HTTP","polling":true,"subscriptions":[],"entityNameExp":"r"}","details":{"error":"BadRequest","description":"date has invalid format"},"code":400} | comp=IoTAgent

@AlvaroVega AlvaroVega changed the title MEASURES-002 error should all device/groups expression defined when log error MEASURES-002 error should include all device/groups expression defined when log error Sep 18, 2024
@AlvaroVega
Copy link
Member Author

Currently there is no issue

@fgalan
Copy link
Member

fgalan commented Sep 18, 2024

Related telefonicaid/fiware-orion#4616

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants