FIWARE / tutorials.IoT-Agent

:orange_book: FIWARE 202: Provisioning the Ultralight IoT Agent
https://fiware-iotagent-ul.rtfd.io
MIT License
13 stars 19 forks source link

"Error accesing entity data for device: motion001' of type: Thing" #23

Open wmmihaa opened 4 years ago

wmmihaa commented 4 years ago

At step for after provisioning the sensor I get this error:

{
    "name": "ENTITY_GENERIC_ERROR",
    "message": "Error accesing entity data for device: motion001' of type: Thing"
}

I have created the service with entity_type set to "Thing". I'm not sure it should but "Thing" is not showing up in the list of types either (http://orion:1026/v2/types).

olisom commented 10 months ago

I tried to reproduce the tutorial and encoured the same issue. Request #26 :

  'http://localhost:4041/iot/devices/water002' \
  -H 'Content-Type: application/json' \
  -H 'fiware-service: openiot' \
  -H 'fiware-servicepath: /' \
-d '{
  "entity_type": "IoT-Device"
}'

The request status code is 200 but the request.text is:

{
    "name": "ENTITY_GENERIC_ERROR",
    "message": "Error accesing entity data for device: water002 of type: IoT-Device"
}

I think, although it's not clear in the tutorial, that the value of entity_type must change from 'Device' to 'IoT-Device' with this request, which is not the case.