eltcple
@eltcple
Reviews Written
3
Average Rating
4.0
Posts
Q&A
axios timeout
์๋ ํ์ธ์.api ์๋ฒ๋ฅผ ๊บผ๋ฒ๋ฆฌ๊ณ ํ ์คํธ ํ์๋๋timeout ์๊ฐ๋์ ๊ณ์ ์๋ํ๋๊ฑธ๋ก ์ดํดํ๋๋ฐ๊ทธ๊ฒ ์๋์๋ค์.api ์๋ฒ์์ ์๋์ ์ผ๋ก 11์ด์ delay๋ฅผ ์ฃผ๋์ ์์ ์ธ timeout error๊ฐ ๋ฐ์ํ๊ฒ์ ํ์ธํ์ต๋๋ค.๋น ๋ฅด๊ณ ์ ํํ ๋ต๋ณ์ ๊ฐ์ฌ๋๋ฆฝ๋๋ค.
- 0
- 3
- 206
Q&A
axios timeout
์๋ ํ์ธ์.console๋ก ์ฐ์ด๋ณด๋ ์๋์ ๊ฐ์ต๋๋ค. AxiosError {message: 'Network Error', name: 'AxiosError', code: 'ERR_NETWORK', config: {โฆ}, request: XMLHttpRequest, โฆ}code: "ERR_NETWORK"config:adapter: (3) ['xhr', 'http', 'fetch']allowAbsoluteUrls: truebaseURL: "http://localhost:58824/api/post"data: undefinedenv: {FormData: ฦ, Blob: ฦ}headers: AxiosHeaders {Accept: 'application/json, text/plain, /', Content-Type: undefined, X-Custom-Header: 'foobar'}maxBodyLength: -1maxContentLength: -1method: "get"timeout: 10000transformRequest: [ฦ]transformResponse: [ฦ]transitional: {silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false}url: "?group=1&page=1"validateStatus: ฦ validateStatus(status)xsrfCookieName: "XSRF-TOKEN"xsrfHeaderName: "X-XSRF-TOKEN"[[Prototype]]: Objectmessage: "Network Error"name: "AxiosError"request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 10000, withCredentials: false, upload: XMLHttpRequestUpload, โฆ}stack: "AxiosError: Network Error\n at XMLHttpRequest.handleError (http://localhost:3000/node_modules/.vite/deps/axios.js?v=597761da:1542:14)\n at Axios.request (http://localhost:3000/node_modules/.vite/deps/axios.js?v=597761da:2062:41)\n at async fetchPosts (http://localhost:3000/src/components/PostListComponent.vue?t=1745193941392:39:22)"[[Prototype]]: Error
- 0
- 3
- 206




