BrandyMello / byob

0 stars 0 forks source link

DELETE for countries working but throwing catch error #14

Closed BrandyMello closed 4 years ago

BrandyMello commented 4 years ago

DELETE for the countries is working, but throwing the catch error. A new country can be POSTed and DELETEd from the database, so not sure what is being "caught".

BrandyMello commented 4 years ago

POSTed successfully in Postman; saw in local server using the GET DELETEd successfully in Postman; saw in local server that the correct "no country with that id was found" error was thrown when attempting to GET after successful DELETE. Tested 3x Still throwing catch error on DELETE, but otherwise working.

BrandyMello commented 4 years ago

wrapped id from the endpoint in parseInt and it is working now with the appropriate response