본문 바로가기
마주쳤던 에러 해결 모음

[에러해결] Network ErrorAxiosError: Network Error at XMLHttpRequest.handleError

by 문자메일 2024. 8. 1.

에러 문구 : Network Error AxiosError: Network Error at XMLHttpRequest.handleError

 

에러 해결 : 나의 경우는 테스트 서버에 CORS가 적용이 안 되어 있었어서 발생한 문제였음.

                   적용하니 해결됨.

 

 

아래는 chat gpt에 위 에러 문구로 검색하니 나온 총 해결법 리스트

Possible Causes of the Network Error

  1. Server Unreachable: The server you are trying to reach might be down or unreachable. This could be due to server-side issues or incorrect URL.
  2. CORS Issues: If you are making a request from a web application running on a different origin (domain, protocol, or port) than your server, the server needs to allow cross-origin requests. If CORS (Cross-Origin Resource Sharing) is not properly configured, the request will fail.
  3. Network Connectivity: There may be issues with your internet connection or network settings. This can include problems with your local network, firewall settings, or proxy configuration.
  4. Invalid URL: The URL you are trying to request might be malformed or incorrect. Make sure the URL is correctly formatted and points to a valid endpoint.
  5. Request Configuration: There might be an issue with how the request is configured. For example, incorrect headers, authentication tokens, or request parameters might cause the request to fail.
  6. Browser Extensions: Sometimes, browser extensions or ad blockers can interfere with network requests, causing errors.

댓글