-
my code is as followed :
However, it raise errors that: An error occurred (SecondLevelDomainForbidden) when calling the GetObject operation: Please use virtual hosted style to access. I read the oss docs, it says that aliyun oss only support virtual hosted type. "Virtual hosted style是指将Bucket置于Host Header的访问方式。基于安全考虑,OSS仅支持virtual hosted访问方式。所以在S3迁移至OSS后,客户端应用需要进行相应设置。部分S3工具默认使用Path style,也需要进行相应配置,否则可能导致OSS报错,并禁止访问。" So, I change my code as followed to the virtal hosted type:
However, it raise error again: botocore.errorfactory.NoSuchKey: An error occurred (NoSuchKey) when calling the ListObjectsV2 operation: The specified key does not exist. I read the oss docs again, and find the doc: it says that aliyun oss doesn't support the ListObjectsV2 API, so it will raise error if we use aliyun oss as the deeplake storage. Can anyone solve this problem or have a solution ? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There are a couple places in https://github.com/activeloopai/deeplake/blob/f9884a6d1259af032c58c1aea4e728d3292f09e1/deeplake/core/storage/s3.py which use the I don't have access to an aliyun system to be able to see what alternatives work and what other problems get hit beyond that ListObjectesV2. @wuhuaiwei, would you be able to find what it takes to get the |
Beta Was this translation helpful? Give feedback.
-
It looks like it's in Are you able to create a custom version of s3.py that removes the |
Beta Was this translation helpful? Give feedback.
It looks like it's in
deeplake\core\storage\s3.py
, line 339. It also gets used inrename
on 407.Are you able to create a custom version of s3.py that removes the
list_objects_v2
in those places? If so, does everything work for you? Or do you hit errors with another difference in aliyun?