When I make a request to http://server address:8095/api/device-profiles it always returns an empty “result” list:
‘{“totalCount”:“2”,“result”:[]}’
I have 2 device profiles in my system, so the “totalCount” is correct.
I read the forum and found similar problems with other api (like get device list) and the solution was to provide a non-zero “limit” parameter. But that didn’t solve it.
I’m doing this from Python:
global_api_key = "eyJ..."
headers = {
"Authorization": f"Bearer {global_api_key}",
"Content-Type": "application/json",
"limit": "2"
}
url = f"http://{g_chirpstack_server}/api/device-profiles"
response = requests.get(url, headers=headers)
Any help would be appreciated. Thank you!
Michael