try -catch 에서 error 가 나는데도 계속 try 로 들어갔다...
async await 을 확인하지 못한 나 ... axios.post에 await 붙여주니까 바로 됐다.
https://stackoverflow.com/questions/59582828/try-catch-is-not-working-for-400-errors-in-js
Try-catch is not working for 400 errors in JS
This is getting on my nerves, I've been checking the code for a few hours and can't spot the problem. in the below code, I'm using an invalid object in the body in order to get 400 error (Bad Reque...
stackoverflow.com
앞으로 조심하자 .. :)
댓글