Open
Description
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
-
I have devices with attributes configured in the TTS Console.
-
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
- The fix is tested in a staging environment.
- The fix is documented in The Things Stack Documentation
Code of Conduct
- I agree to follow TTN's Community Code of Conduct.
Metadata
Metadata
Assignees
Labels
No labels
Activity