aliyun / aliyun-oss-python-sdk

Aliyun OSS SDK for Python
MIT License
939 stars 363 forks source link

py27下STS的例子根本跑不起来了 #171

Open ipconfiger opened 5 years ago

ipconfiger commented 5 years ago

直接照搬例子的话 aliyunsdkcore.acs_exception.exceptions.ClientException: SDK.EndpointResolvingError No endpoint in the region 'oss-cn-hongkong' for product 'Sts'. You can set an endpoint for your request explicitly. See https://www.alibabacloud.com/help/doc-detail/92074.htm

如果手动设置上endpoint, 就报 `aliyunsdkcore.acs_exception.exceptions.ServerException: HTTP Status: 403 Error:SDK.UnknownServerError ServerResponseBody: <?xml version="1.0" encoding="UTF-8"?>

AccessDenied Anonymous access is forbidden for this operation. 5CB348C1091BDBFD031EADB2 oss-cn-hongkong.aliyuncs.com ` 你们996都写不好SDK的一个demo么? 是不是在摸鱼?
hangzws commented 5 years ago

您好,看起来可能是配置问题或者是软件版本问题导致的,能提供一下您调用的接口信息以及配置信息么?为了尽快定位问题原因,请联系我们的技术支持,谢谢。