Open fbuedding opened 1 year ago
Hi @fbuedding, @fgalan I would like to contribute on this issue.
Great to hear this @vivekNEC. I can assign you this issue. @fbuedding documented pretty well this issue, but, if you have any further question, feel free to post here.
Consider to check:
POST /iot/services
) with a value that differs from the default resource) both for autoprovisioned devices (the error shown in this issue) and also for previously provisioned device (devices created in advance)/iot/json
) and IoT Agent Ultralight (default resource: /iot/d
).When this issue gets addressed, have a look to doc/api.md file, look for FIXME mark and remove the 2 ones regarding #1524 (introduced in PR https://github.com/telefonicaid/iotagent-node-lib/pull/1551)
IoT Agent Node Lib version the issue has been seen with
3.3.0
Bound or port used (API interaction)
Other
NGSI version
NGSIv2
Are you running a container?
Yes, I am using a contaner (Docker, Kubernetes...)
Image type
normal
Expected behaviour you didn't see
When a Service Group is provisioned with an api-key, resource other than the defaultResource and autoprovision is set to true documented here, then no device will be autoprovsioned upon receiving measurements. In my understanding the documentation let it sound like it should autoprovision a Device with the corresponding resource.
Bonus: when posting via http it also uses the default entity_type and not the one defined in the service group
Unexpected behaviour you saw
It did not autoprovision a device, it said it could not find one
Steps to reproduce the problem
Configs
Log output