Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wmmihaa opened this issue Sep 22, 2019 · 1 comment · Fixed by telefonicaid/iotagent-node-lib#1617

Comments

@wmmihaa
Copy link

wmmihaa commented Sep 22, 2019

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
Copy link

olisom commented Oct 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants