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 always returns 401 #575

Closed
wolfsilver opened this issue Mar 25, 2025 · 2 comments
Closed

api always returns 401 #575

wolfsilver opened this issue Mar 25, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@wolfsilver
Copy link

Describe the bug
v0.45.2
Calling blinko using the api always returns 401

 curl -X 'POST' 'https://example.com/api/v1/note/upsert' \
      -H 'Content-Type: application/json' \
      -H 'Authorization: Bearer token' \
      -d '{ "content": "🎉Hello,Blinko! --send from api ", "type":0 }'
Copy link

dosubot bot commented Mar 25, 2025

A 401 Unauthorized error typically indicates an issue with authentication. Here are some common reasons and solutions:

  1. Bearer Token Issues: Ensure that the token used in the Authorization header is valid, not expired, and correctly formatted as Bearer <token>. Double-check that the token is correctly retrieved from your user information [1][2].

  2. Token Expiry: If the token has expired, you will need to refresh it and use the new token in your request [2].

  3. Server Configuration: Verify that the server is correctly configured to accept API requests and that there are no additional security settings blocking the request [1].

  4. Cookies: In some cases, including cookies in your requests might be necessary for successful authentication [2].

Ensure these aspects are correctly set up, and try the request again.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot dosubot bot added the bug Something isn't working label Mar 25, 2025
@wolfsilver
Copy link
Author

works after referesh token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant