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] Status code 500 in response instead of 404 when entering invalid user id #2127

Open
AnnaMalibu opened this issue Jan 16, 2024 · 0 comments
Assignees

Comments

@AnnaMalibu
Copy link

**Environment: **Linux Arch,
Google Chrome 120.0.6099.71 (64-bit);
Postman 2023 (v10.20).
Reproducible: Always;
Build found: DEV;
back:7dd7;
front:d5b9;
04.01.2024

Preconditions
Postman is opened and the token(admin) is gotten.

Steps to reproduce

  1. Create PATCH request to 'http://speak-ukrainian.eastus2.cloudapp.azure.com/dev' using endpoint: /api/club/change-owner/{id};

Body:

{"user":{"id":50}}

Note: user id can be changed to another invalid value

Actual result
Status code 500 in response, "Internal server error'.

image
Expected result
Status code 404, the message "User not found by id:{...}"

User story #208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Development

No branches or pull requests

1 participant