SIGNAL1 [ axios ] timeout이 제대로 작동하지 않을 때 요청 중단하는 방법 오류발생 axios.get( URL, { timeout: 2000 } )// 의도와 다르게 동작 .then((res) => { console.log("SUCCESS"); }) .catch((err) => { console.log("ERROR"); }) axios로 응답을 받고 응답 제한시간을 timeout을 통해 2초를 주었는데 2초가 지나도 계속 서버 응답을 기다리고 있다. 너 왜그래? 그래서 간단히 구글링 결과 stackoverflow에서 답을 찾을 수 있었다. Timeout feature in the axios library is not working I have set axios.defaults.timeout = 1000; I stopped the server that provides me wit.. 2023. 2. 16. 이전 1 다음