CSCI-GA-2820-SU24-001 / shopcarts

NYU DevOps Shopcarts Service Summer 2024
Apache License 2.0
0 stars 1 forks source link

Internal server error when creating Shopcart without input fields #138

Closed manisha-goyal closed 1 month ago

manisha-goyal commented 2 months ago

Describe the bug Pressing the "Create" button without entering any information results in an "Internal Server Error."

To Reproduce Steps to reproduce the behavior:

  1. Go to the homepage of the Shopcarts REST API Service.
  2. Do not fill in any fields in the "Create, Retrieve, Update, and Delete a Shopcart" form.
  3. Press the "Create" button.
  4. Observe the error message "Internal Server Error."

Expected behavior The system should validate the input fields and display an appropriate error message indicating that required fields are missing, without triggering an internal server error.

Observed behavior Pressing the "Create" button without entering any information results in a 500 Internal Server Error, instead of handling the missing input gracefully.

Screenshots

image.png

Additional context This issue may be due to missing input validation in the frontend or backend. Proper validation should be implemented to ensure that all required fields are filled before submitting the form.