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

500 error PATCH incorrect response message when title has already exist #44

Open
NasDmit opened this issue Jun 25, 2022 · 1 comment
Open
Labels
question Further information is requested

Comments

@NasDmit
Copy link

NasDmit commented Jun 25, 2022

  1. Authorize as a teacher.
  2. Send GET request to http://qa-school-test.quantori.academy/api/v1/courses. Choose one of the existed course title.
  3. Send PATCH request to http://qa-school-test.quantori.academy/api/v1/courses with existed course title.

Actual behavior
{
"errors": "Unable to change course: SequelizeUniqueConstraintError: Validation error"
}

Expected behavior
{
"errors": "title should be unique"
}

Screenshots
image

@NasDmit NasDmit changed the title 500 error PATCH incorrect response message 500 error PATCH incorrect response message when title has already exist Jun 25, 2022
@viraxslot
Copy link
Owner

@NasDmit could you please check what was sent as a value for the id field? It's not obvious. You can use Postman console for that.

@viraxslot viraxslot added the question Further information is requested label Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants