Error: 16 UNAUTHENTICATED: When trying to list regions


First of all, great job on Chirpstack v4! It’s awesome!

I’ve run in to a problem when i try to list regions through the API using the javascript SDK. I’ve created an API key in the UI and I can use that to do other things in the API, (list tenants, list device profiles etc…), but when I try to list regions I get “16 UNAUTHENTICATED”.

The InternalService methods are not exposed and can not be accessed using API keys. These methods are there to facilitate the web-interface, but the API of these methods can change any time.

Thanks for the response!

For now I can work around this limitation, but I think that listing regions should be exposed in the future. Creating a device profile is exposed, and that requires setting the region. In my opinion there is inconsistency in the API if we are required to set region on device profile, but not able to list available regions.

I think these might be two different endpoints. The listing of regions in the internal service is to provide documentation within the UI. The format of these payloads could change any time. The endpoint that you are asking for could be a lot simpler, e.g. just an array with only the name and common-name.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.