Skip to content

[Bug]GET API returns 404 error for an existing device in the tenant #5

@Unmeiwa

Description

@Unmeiwa

Description

When attempting to use the provided GET API to find a specific device for a tenant, the system returns a 404 error indicating "Device not found". However, the device is visible in the user interface.

Steps to Reproduce

Steps to reproduce the behavior:
1.Access the API endpoint: https://api.stayforge.net/v1/devices/ {organization_id}/{tenant_id}/{device_id}
2.Use the following parameters:
organization_id: org_4e8fb2461d71963a
tenant_id: ten_6394d8ab8f03ddb5
device_id: 1
3.Add the necessary request headers, including X-API-Key
4.Send the request and observe the response

Actual Behavior

The system returns a 404 status code with the following response body:

{
"code": "not_found",
"message": "Device not found"
}

Expected Behavior

The system should return the details of the device instead of a 404 error.

Environment (if applicable)

  • OS:Windows11
  • Browser / Tool:Zudoku Playground/Chrome/Postman
  • SDK / Client:
  • Other relevant details:

Additional Context

In the user interface, the following device information is visible:

Device ID: 1
Device Name: 一楼温度传感器

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions