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 returns "401 Unauthorized" if token is valid but method or endpoint don't exist #6549

Open
camsellem opened this issue Dec 20, 2024 · 0 comments
Labels
area/backend Needs backend code changes area/frontend Needs frontend code changes bug Something isn't working kind/customer-request Requested by one or more customers

Comments

@camsellem
Copy link

Describe the issue

The API always return a 401 error even though the token is valid but the error is elsewhere such as a wrong method or wrong endpoint. It can be confusing for users. See Zendesk #299.

curl -X GET -H "Authorization: Bearer " localhost:8080/api/v1/production/me -> Working
curl -X POST -H "Authorization: Bearer " localhost:8080/api/v1/production/me -> 401 but should return method not allowed.
curl -X GET -H "Authorization: Bearer " localhost:8080/api/v1/production/moi -> 401 but should return a 404

Environment

  • Kestra Version: 0.20.7
@camsellem camsellem added bug Something isn't working area/backend Needs backend code changes area/frontend Needs frontend code changes kind/customer-request Requested by one or more customers labels Dec 20, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Issues Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend Needs backend code changes area/frontend Needs frontend code changes bug Something isn't working kind/customer-request Requested by one or more customers
Projects
Status: Backlog
Development

No branches or pull requests

1 participant