{"error":"permission denied: Broker did not set device: permission denied: NetworkServer did not set device: permission denied: No \"devices\" rights to Application \"YYYY\"","message":"permission denied: Broker did not set device: permission denied: NetworkServer did not set device: permission denied: No \"devices\" rights to Application \"YYYY\"","code":2}
Application YYYY does exist, and yes, the auth key has no access to it. But the call clearly states to use application XXXXX. What’s going on here?
Like the problem come up form one day to another, the issue appeared to have spontaneously gone. I guess TTN has fixed it, or some cache was flushed which made the bug disappear. Oh well.
returned: permission denied: Broker did not set device: permission denied: NetworkServer did not set device: permission denied: No “devices” rights to Application “YYYY”
I am also running into this issue when I try to add a device. I have no idea what the problem is considering I have been able to register all my other devices just fine.
Quite late, but: does anyone remember how they fixed this, and if that might have been related to a non-unique AppEUI?
And @markruys, was the following indeed the AppEUI that was actually used? If yes, then it’s not the correct length and maybe TTN will have added a leading zero. But as it doesn’t look like a registered, unique EUI to me, I assume the real AppEUI was simply redacted in the post:
The following seems to suggest that a non-unique AppEUI might be one of the causes of the error message:
(I’m not having this problem myself; just trying to understand things for future readers.)
The documentation seems quite lenient/confusing as for using the device ID in the URL:
Available HTTP Endpoints:
PUT/applications/{app_id}/devices/{dev_id}
POST/applications/{app_id}/devices
PUT/applications/{app_id}/devices
POST/applications/{app_id}/devices/{dev_id}
But for a POST (to create a new resource) I’d not necessarily expect the /aaaaaaa part in the URL used in the first post. Might that have been the culprit?
The above would not explain why the error complained about application “YYYY” while “XXXXX” was requested.
Same problem here, after generating some devices in a script via ttnctl and then removing them again (I accidentally made them ABP), and then generating them again… Maybe I confused the system a bit
The “Devices” section in the Console now says “1 – 2 / 2” but lists no device. And “ttnctl devices list” gives
DevID AppEUI DevEUI DevAddr Description
register on join <nil>
register on join <nil>
INFO Listed 2 devices
⇒ Apparently two device entries in an inconsistent state. I cannot remove them manually because they have no DevID assigned, although I cannot reuse the DevID I gave them. I’ll see if they are automatically removed by the system eventually. For now, I’ll switch to another naming scheme.