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

Given an invalid hour, it returns internal-server-error #43

Open
haibin opened this issue Oct 24, 2021 · 0 comments
Open

Given an invalid hour, it returns internal-server-error #43

haibin opened this issue Oct 24, 2021 · 0 comments

Comments

@haibin
Copy link

haibin commented Oct 24, 2021

Given an invalid hour, it returns internal-server-error. I was expecting a bad request.

$ curl --location --request PUT 'http://localhost:3000/api/trainer/calendar/make-hour-available' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX3V1aWQiOiIxIiwiZW1haWwiOiJ0cmFpbmVyQHRocmVlZG90cy50ZWNoIiwicm9sZSI6InRyYWluZXIiLCJuYW1lIjoiVHJhaW5lciIsImlhdCI6MTYzMDkyNDE3NH0.veziMkcul16lUnQwV7HnNPSf19AkntaDlPDRfNYBkKI' \
--header 'Content-Type: application/json' \
--data-raw '{
    "hours": [
        "aaaaaa"
    ]
}'

{"slug":"internal-server-error"}
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