Lỗi proxy_connection_failed trong Axios và cách khắc phục

kimquyentrandan

New member
## Lỗi proxy_Connection_Failed trong Axios và cách sửa nó

Axios là một thư viện JavaScript phổ biến để thực hiện các yêu cầu HTTP.Thật dễ dàng để sử dụng và có một số tính năng làm cho nó trở thành một lựa chọn tốt cho sự phát triển phía trước.Tuy nhiên, một trong những lỗi phổ biến nhất mà người dùng Axios gặp phải là lỗi `proxy_connection_failed`.

Lỗi này xảy ra khi Axios không thể kết nối với máy chủ proxy.Có một số lý do tại sao điều này có thể xảy ra, nhưng nguyên nhân phổ biến nhất là máy chủ proxy không được cấu hình chính xác.

Để sửa lỗi `proxy_connection_failed`, bạn cần đảm bảo rằng máy chủ proxy được cấu hình chính xác.Dưới đây là các bước về cách thực hiện việc này:

1. Mở `C: \ Windows \ System32 \ Trình điều khiển \ ETC \ Hosts` trong Notepad.
2. Thêm dòng sau vào tệp:

`` `
127.0.0.1 Localhost
`` `

3. Lưu tệp và đóng Notepad.

4. Mở hộp thoại `internet tùy chọn` bằng cách nhấp vào nút ** Bắt đầu **, sau đó ** Bảng điều khiển **, sau đó ** Mạng và Internet **, sau đó ** Tùy chọn Internet **.

5. Nhấp vào tab ** kết nối ** và sau đó nhấp vào nút ** LAN Cài đặt **.

6. Đảm bảo rằng ** sử dụng máy chủ proxy cho hộp kiểm LAN ** của bạn không được kiểm tra.

7. Nhấp vào nút ** OK ** để đóng hộp thoại ** internet **.

8. Khởi động lại máy tính của bạn.

Khi bạn đã hoàn thành các bước này, sẽ giải quyết lỗi `proxy_connection_failed`.

## hashtags

* #axios
* #http
* #Ủy quyền
* #lỗi
* #sửa chữa
=======================================
## Error Proxy_Connection_Failed in Axios and how to fix it

Axios is a popular JavaScript library for making HTTP requests. It's easy to use and has a number of features that make it a good choice for front-end development. However, one of the most common errors that Axios users encounter is the `Proxy_Connection_Failed` error.

This error occurs when Axios is unable to connect to the proxy server. There are a number of reasons why this might happen, but the most common cause is that the proxy server is not configured correctly.

To fix the `Proxy_Connection_Failed` error, you need to make sure that the proxy server is configured correctly. Here are the steps on how to do this:

1. Open the `C:\Windows\System32\drivers\etc\hosts` file in Notepad.
2. Add the following line to the file:

```
127.0.0.1 localhost
```

3. Save the file and close Notepad.

4. Open the `Internet Options` dialog box by clicking on the **Start** button, then **Control Panel**, then **Network and Internet**, and then **Internet Options**.

5. Click on the **Connections** tab and then click on the **LAN Settings** button.

6. Make sure that the **Use a proxy server for your LAN** checkbox is not checked.

7. Click on the **OK** button to close the **Internet Options** dialog box.

8. Restart your computer.

Once you have completed these steps, the `Proxy_Connection_Failed` error should be resolved.

## Hashtags

* #axios
* #http
* #Proxy
* #error
* #fix
 
Join ToolsKiemTrieuDoGroup
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock