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

APIs should return error details #2518

Closed
tbnguyen1407 opened this issue Oct 17, 2023 · 3 comments · Fixed by #2583
Closed

APIs should return error details #2518

tbnguyen1407 opened this issue Oct 17, 2023 · 3 comments · Fixed by #2583
Labels

Comments

@tbnguyen1407
Copy link

Describe the feature

Currently only a status code is returned for invalid input. Actual error can only be seen in logs.

## request
PATCH /v3/config/global/patch
{
    "invalid": "field"
}

## response
Status: 400 Bad Request
Body: empty
2023/10/17 16:51:07 ERR [API] json: unknown field "invalid"

HTTP API should return error details in response body, e.g:

{
    "error": "json: unknown field: invalid"
}
@aler9
Copy link
Member

aler9 commented Oct 27, 2023

this has been implemented with #2583

@aler9
Copy link
Member

aler9 commented Oct 28, 2023

added in v1.2.1

Copy link
Contributor

github-actions bot commented May 1, 2024

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants