kuzzleio / kuzzle-device-manager

IoT Devices & Assets Management providing digital twins, payload decoding, normalized measures, provisioning. Multi-Tenant ready for white labelled and B2B2C applications.
https://docs.kuzzle.io/official-plugins/device-manager/1
Apache License 2.0
14 stars 7 forks source link

listAssets always returns empty #329

Closed xdien closed 8 months ago

xdien commented 8 months ago

Hi kuzzle I'm getting the list of assets based on the documentation here, but the result is always returned as empty

GET http://localhost:7512/_/device-manager/models/assets?engineGroup="heat-stability"

then return

{
  "action": "listAssets",
  "controller": "device-manager/models",
  "error": null,
  "headers": {},
  "node": "knode-scrawny-bird-28392",
  "requestId": "e9774fdf-3874-4181-b3b3-a6bad9b20483",
  "result": {
    "models": [],
    "total": 0
  },
  "status": 200,
  "volatile": null
}

This is the data in admin Screenshot 2024-02-12 at 19 49 27 I'm not sure what I'm doing wrong that causes the result to always return empty. If you need any information, please leave a comment. Thank you

xdien commented 8 months ago

I realized the cause of the error was that GET http://localhost:7512/_/device-manager/models/assets?engineGroup="heat-stability" should be GET http://localhost:7512/_/device-manager/models/assets?engineGroup=heat-stability without the quotes