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 - unable to change course as teacher #39

Open
mariarubina opened this issue Jun 24, 2022 · 2 comments
Open

500 - unable to change course as teacher #39

mariarubina opened this issue Jun 24, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@mariarubina
Copy link

mariarubina commented Jun 24, 2022

Steps to reproduce

  1. Post - login as admin
  2. Post - Create category
  3. Post - Login as teacher
  4. Post - create a course
  5. Patch - change a course

Actual behavior
500 - internal server error
"errors": "Unable to change course: SequelizeUniqueConstraintError: Validation error"
}

Expected behavior

course title and description should be changed

Screenshots
If applicable, add screenshots to help explain your problem.
image

@viraxslot
Copy link
Owner

@mariarubina could you please provide the exact data from your request body? I'm interested in "courseId" and "categoryId" values. You can check that in the Postman console.

@viraxslot viraxslot added the question Further information is requested label Jun 28, 2022
@mariarubina
Copy link
Author

@mariarubina could you please provide the exact data from your request body? I'm interested in "courseId" and "categoryId" values. You can check that in the Postman console.

image

@viraxslot viraxslot added bug Something isn't working and removed question Further information is requested labels Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants