Open Anupamskd7 opened 2 years ago
The error message from your Scorpio broker is clear:
{
"entityId": "urn:ngsi-ld:LoraDevice:loraent01",
"ProblemDetails": {
"type": "https://uri.etsi.org/ngsi-ld/errors/BadRequestData",
"status": "BAD_REQUEST",
"title": "Bad Request Data.",
"details": "@Context entry is needed"
}
}
The payload you are sending claims to be JSON-LD ("Content-Type": "application/ld+json"
) but no @context
element is present. This is probably due to not setting the IOTA_JSON_LD_CONTEXT
Docker Environment variable (or alternatively placing an jsonLdContext
attribute in your config.js
. You can see a working example in this docker-compose obviously IOTA_JSON_LD_CONTEXT
should point to an accessible JSON-LD @context appropriate for your use-case.
Hi @jason-fox, Could you please help me in understanding this,
Description:
Unable to Provision device in IoTAgent LoRaWAN with Scorpio broker v2.1.13 as context broker.
Steps to reproduce:
Make the following changes in config.js file:
Send the device Provisioning request to the 4061 port of IoTAgent LoRaWAN as follows:
Expected Output:
200 OK
Device should get created.Actual Output:
Logs:
Affected Product Version:
fiware/iotagent-lorawan:1.2.3 & ioeari/iotagent-lora:1.2.5
Environment details (with versions):
OS: Centos 7 Env (Docker/K8s): Both Docker & K8S