seven23_server icon indicating copy to clipboard operation
seven23_server copied to clipboard

500 on /api/v1/debitscredits if id is not int

Open sebastienbarbier opened this issue 2 years ago • 0 comments

Current backend crash on POST request using /api/v1/debitscredits as id is expected to be an integer but might be received as string by a wrong request.

It is expected to return 401 bad request instead of 500.

Related to a front end bug : https://github.com/sebastienbarbier/seven23/issues/71

sebastienbarbier avatar Dec 06 '22 05:12 sebastienbarbier