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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot