telefonicaid / iotagent-node-lib

Module to enable IoT Agent developers to build custom agents for their devices that can easily connect to NGSI Context Brokers
https://iotagent-node-lib.rtfd.io/
GNU Affero General Public License v3.0
59 stars 84 forks source link

Task/badtimestamp error log #1536

Closed AlvaroVega closed 7 months ago

AlvaroVega commented 7 months ago

For a case: curl -i -X POST 'http://localhost:7897/iot/json?i=dispNew&k=izc9cokegoy7kyfgdd6etipt6&t=null' -d '{ "c": 3, "d": 4}' -H 'content-type: application/json'

{"name":"BAD_TIMESTAMP","message":"Invalid ISO8601 timestamp [null]"}

this error will be:

{"name":"BAD_TIMESTAMP","message":"Invalid ISO8601 timestamp [null] in [thing:dispNew]"}