TencentCloud / tencentcloud-sdk-python

Tencent Cloud API 3.0 SDK for Python
Apache License 2.0
613 stars 251 forks source link

[TencentCloudSDKException] code:ClientNetworkError #31

Closed Wini1680 closed 5 years ago

Wini1680 commented 5 years ago

[TencentCloudSDKException] code:ClientNetworkError message:[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847) requestId:None

Ubuntu 18.04 python3.6 秘钥用的是API秘钥管理的SecretId和SecretKey 然而出现这个错误是什么情况呢?

zqfan commented 5 years ago

你的python是自己编译的吗?请参考下网上对python编译时ssl模块需要注意的事项

Wini1680 commented 5 years ago

1.把测试代码中的os.environ.get直接换成了SecretID和SecretKey 2.加了句ssl._create_default_https_context=ssl._create_unverified_context