libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [libcloud] binarilly opened a new issue #1563: OSSStorageDriver upload_object & download_object_via_stream Issue
Date Fri, 05 Mar 2021 10:00:32 GMT

binarilly opened a new issue #1563:
URL: https://github.com/apache/libcloud/issues/1563


   在使用libcloud调用aliyun oss时遇到以下两个问题:
   1. upload_object: libcloud.common.types.InvalidCredsError: b'<?xml version="1.0" encoding="UTF-8"?>\n<Error>\n
 <Code>NonStandardHostForbidden</Code>\n  <Message>Your host is invalid.
Please use Open Storage Service standard host.</Message>\n  <RequestId>60420052D987C1303869C56D</RequestId>\n
 <HostId>oss.aliyuncs.com</HostId>\n</Error>\n'
   查明原因是因为在OSSStorageDriver调用upload_object时没有将传入Container对象传递到OSSConnection的request方法,导致调用OSS
api的时候host设置为默认的oss.aliyun.com 而不是 regionxxx.oss.aliyun.com。
   2. download_object_via_stream:
   没有实现流式下载的方法,和download_object一样的逻辑。


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message