Closed filgiuff closed 5 years ago
This is caused because by default this agent uses NGSIv2 as you can see in https://github.com/Atos-Research-and-Innovation/IoTagent-LoRaWAN/blob/task/improveDocumentation/docker/config-docker.js#54. It seems that Orion v 1.13.0 did not support some NGSIv2 operations like POST '/v2/entities?options=upsert'. I would recommend you to use a modern version of Orion or to modify the agent configuration to use NGSIv1. To do so, you just need to remove from the configuration file the line 'ngsiVersion: 'v2' or to pass 'v1' to the environment variable 'IOTA_CB_NGSI_VERSION'.
Removing the line 'ngsiVersion: 'v2' from the configuration file, solved the issue. Thanks!
I've tried to install the IoTAgent.LoRaWAN within our existing architecture, it uses Orion v 1.13.0 the get devices API http://{{AgentHost}}:{{agent.lora.port.north}}/iot/devices works fine
{ "count": 0, "devices": [] }
but when I try to provision a device, this error appears
On the agent logs there are several errors, including the following:
The same flow, using Orion v 2.2.0-next works fine.
Is there a requirement for the minimum version of Orion? Is there a way to make this agent work with Orion v 1.13.0 ?