Skip to content

API not working from web ui #10

Open
@FStefanni

Description

@FStefanni

Hi,

I like to signal the following bug in the web ui for the rest api.
If I use it, I get this error:

{
  "code": 16,
  "message": "authorization metadata must in format 'Bearer <TOKEN>",
  "details": []
}

Which is due to the fact that the web api does not seems to send the correct request. In fact, the example curl is:

curl -X 'GET' \
  'https://lorawan.gizeroplatform.com/api/tenants?limit=100&offset=0' \
  -H 'accept: application/json' \
  -H 'Grpc-Metadata-Authorization: mysupertoken'

Whilst, as stated by the error, it should be:

curl -X 'GET' \
  'https://lorawan.gizeroplatform.com/api/tenants?limit=100&offset=0' \
  -H 'accept: application/json' \
  -H 'Grpc-Metadata-Authorization: Bearer mysupertoken'

Please note the added Bearer.
Of course, the fixed curl works fine.

Best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions