chirpstack / chirpstack-rest-api

ChirpStack gRPC API to REST proxy.
MIT License
17 stars 14 forks source link

"invalid length: expected length 32 for simple format, found 0" for multiple API endpoints? #4

Closed ldorigo closed 1 year ago

ldorigo commented 1 year ago

Hello,

I am trying to play with the API via the Swagger UI, and for a few different endpoints (that I found so far: GET /api/applications, GET /api/devices, GET /api/device-profiles) I get an error message, "invalid length: expected length 32 for simple format, found 0".

Screenshot_20221020_153552

I am on the latest version (4.0.2) of both chirpstack and chirpstack-rest-api.

Is this a bug or did I configure something wrong?

ldorigo commented 1 year ago

(It doesn't always fail - /api/gateways, for instances, works as expected)

t-huyeng commented 1 year ago

I had the some problem: You have to add tentant-id for applications or in case of the devices the applicationId. See: https://forum.chirpstack.io/t/rest-api-bad-request/15138