Search code examples
eclipse-hono

501 Not Implemented on devices/tenant endpoint


I'm running Hono v1.4.0, but get 501 Not Implemented when calling the devices endpoint with:

http://{{REGISTRY_IP}}:{{REGISTRY_PORT_HTTP}}/v1/devices/{{TENANT}}?enabled=false

Am I doing something wrong?


Solution

  • With 501 Not Implemented response, I understood that you are using the file based device registry. In Hono 1.4.0, this search devices operation has been implemented only in the MongoDB based device registry and not in the file-based counterpart. This feature in the file based registry is planned for 1.5.0 release. I would suggest to use the MongoDB based device registry, where this feature already exists.