GreenCity23 / GreenCityProject

0 stars 0 forks source link

[Eco-News, GET /econews/byUserPage] The 500 (Internal Server Error) response code is returned instead of 401 (Unauthorized) #298

Closed GreenCity23 closed 1 year ago

GreenCity23 commented 1 year 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 authorized

Steps to reproduce

  1. Select the “Eco-news" controller
  2. Select the method GET/econews/byUserPage.
  3. Send the request
  4. Pay attention to the response.

Actual result: Response code 500 (Internal Server Error) is returned

Expected result: Response code 401 (Unauthorized) is returned