Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API explorer sending invalid authorization header? #148

Open
humanapp opened this issue Nov 23, 2022 · 1 comment
Open

API explorer sending invalid authorization header? #148

humanapp opened this issue Nov 23, 2022 · 1 comment

Comments

@humanapp
Copy link

While trying out the API at https://tidbyt.dev/docs/api, my calls would fail with the status code 401 and below response, even though I'd authorized with a valid API key.

{
  "code": 16,
  "message": "auth error: rpc error: code = Unauthenticated desc = Bad authorization string",
  "details": []
}

Inspecting the call in the debugger, I noticed the authorization header does not include the Bearer prefix:

authorization: eyJhbGciOiJFUzI....

Could this be why they're failing?

@dmarcucci
Copy link

Yes, I just noticed the same thing myself.

I would expect in the page that it would prepend Bearer and a space for you, but that is not the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants