Skip to content

Device attributes not returned via API in The Things Stack Self-Hosted v3.33.0 #7522

Open
@matiasAS

Description

@matiasAS

Summary

I am using The Things Stack Self-Hosted v3.33.0, and I have noticed that device attributes are not returned via the API, even though the documentation suggests they should be accessible.

Steps to Reproduce

  1. I have devices with attributes configured in the TTS Console.

  2. I attempted to retrieve them using the following API call:

    curl -X GET "https://<my-tts-server>/api/v3/applications/<application_id>/devices/<device_id>" \
      -H "Authorization: Bearer <my-api-key>" \
      -H "Content-Type: application/json" \
      -d '{
        "field_mask": {
          "paths": ["attributes"]
        }
      }'
    

Current Result

The response does not include the attributes field.

Expected Result

The API should return the attributes field as per the documentation.

Relevant Logs

URL

No response

Deployment

The Things Stack Enterprise (self-hosted)

The Things Stack Version

3.33.0

Client Name and Version

Using the CLI: ttn-lw-cli 3.33.0 (run `ttn-lw-cli version`) on Ubuntu 22.04 (Intel)  
Using a web browser: Firefox 102.0 on Ubuntu 22.04 (Intel)  
Gateway: Milesight UG65 Semi-Industrial with the latest firmware  
TTS Deployment: Self-hosted using Docker (`thethingsnetwork/lorawan-stack:3.33.0`)

Other Information

TTS Version: v3.33.0 Self-Hosted
Database Check: The attributes do exist in the PostgreSQL database (attributes table).
API Key Permissions: The API key has full rights.
TTS Logs: No error messages related to attributes retrieval.

Proposed Fix

No response

Contributing

  • I can help by doing more research.
  • I can help by implementing a fix after the proposal above is approved.
  • I can help by testing the fix before it's released.

Validation

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions