Help Center/ Server Migration Service/ FAQs/ Error Codes and Solutions/ SMS.0301 Failed to send the network request. Cause: %s
Updated on 2026-03-19 GMT+08:00

SMS.0301 Failed to send the network request. Cause: %s

Symptom

When the SMS-Agent is started, this error message is displayed: SMS.0301 Failed to send the network request. Cause: %s.

Possible Causes

This issue usually occurs when the SMS-Agent is started. Specifically, when the source server requests Huawei Cloud through a proxy server, if the network request from the source server to the proxy server or from the proxy server to Huawei Cloud fails to be sent, this error message may be displayed.

Solution

Check and rectify the network fault on the source server. After the network fault is rectified, restart the SMS-Agent.

The procedure is as follows:

  1. Check whether the proxy server is set in the SMS-Agent.
    • Linux source server
      Go to the SMS-Agent installation path. Use the file editor to check the auth.cfg file in the SMS-Agent/agent/config directory.
      vim SMS-Agent/agent/config/auth.cfg

      Check whether enable=false is shown in the second line.

      If it is shown, there is no proxy.

      If enable=true is shown, check the network connectivity of the proxy server configured in proxy_addr in the third line. Ensure that the network between the source server, proxy server, and Huawei Cloud is normal.
      [proxy-config]
      proxy_addr = https://<your-proxy-address>.com
    • Windows source server
      1. For Python 3, access the SMS-Agent GUI. If you select Use Proxy, enter the internal IP address and port number of the proxy server.

        Check the network connectivity of the proxy server. Ensure that the network between the source server, proxy server, and Huawei Cloud is normal.

      2. For Python 2, go to the SMS-Agent installation directory, for example, C:\SMS-Agent-Py2\config, and check the auth.cfg file.
        vim SMS-Agent/agent/config/auth.cfg
        Check the network connectivity of the proxy server configured in proxy_addr. Ensure that the network between the source server, proxy server, and Huawei Cloud is normal.
        [proxy-config]
        proxy_addr = https://<your-proxy-address>.com

    proxy_addr: Enter the IP address of the proxy server, not that of the target server. Follow the format https://your-proxy-address.com or http://your-proxy-address.com. Replace your-proxy-address with the actual proxy server address. Use the protocol configured for your proxy server, which can be HTTP or HTTPS.

  2. After confirming that the network is normal, restart the SMS-Agent.