OlhenShu / ProjectStage_Team2_May

0 stars 0 forks source link

[Eco-News, Get/econews/count] The 500 (Internal Server Error) response code is returned instead of 400 (Bad request) #303

Closed OlhenShu closed 4 months ago

OlhenShu commented 4 months ago

Environment: Windows 11 Home Chrome 114.0.5735.91 (Official buid) (64-bit) GreenCityDocker-3 is built and running.

Reproducible: always.

Pre-conditions: User is not logged in.

Steps to reproduce:

  1. Select the “Eco-news" controller.
  2. Select the method Get/econews/count.
  3. Send the request without "userId" value.
  4. Pay attention to the response code.

Actual result: The 500 (Internal Server Error) response code is returned.

Expected result: The 400 (Bad request) response code is returned.