Help Center/ ModelArts/ Troubleshooting/ APIs or SDKs/ Execution of a huaweicloud.com API Times Out
Updated on 2025-06-06 GMT+08:00

Execution of a huaweicloud.com API Times Out

Symptom

When calling an API from a notebook instance, your request times out: GET pangu-xxx.cn-southwest-2.myhuaweicloud.com.

Possible Causes

A proxy is required to access the public network from a notebook instance. If huaweicloud.com is included in no_proxy or NO_PROXY, the access will fail.

Solution

Check whether no_proxy or NO_PROXY contains huaweicloud.com:

env | grep -i no_proxy

If yes, reset or delete the environment variable.

Method 1: Reset the environment variable.

export no_proxy=xxx
export NO_PROXY=xxx

Method 2: Delete the environment variable.

unset no_proxy
unset NO_PROXY