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 request syntax is invalid #45

Open
NasDmit opened this issue Jun 25, 2022 · 0 comments
Open

Comments

@NasDmit
Copy link

NasDmit commented Jun 25, 2022

  1. Authorize as a teacher.
  2. Create a request to http://qa-school-test.quantori.academy/api/v1/courses:
    {
    "title": "-(0 фыв {{$randomBankAccountBic}}",
    "description": "йцу {{$randomBankAccountBic}}",
    "categoryId": 62
    }
  3. Send PATCH request to http://qa-school-test.quantori.academy/api/v1/courses.

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

Expected behavior
{
"errors": [
{
"msg": "Parameter should be boolean",
"param": "visible",
"location": "body"
}
]
}

Screenshots
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant