aliyun-oss icon indicating copy to clipboard operation
aliyun-oss copied to clipboard

list的时候没问题,进行文件操作的时候报错AccessDenied没有定义endpoint

Open wuzhuzhu opened this issue 9 years ago • 8 comments

I20150715-11:46:17.727(8)? { [Error: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.] I20150715-11:46:17.727(8)? status: 403, I20150715-11:46:17.727(8)? code: [ 'AccessDenied' ], I20150715-11:46:17.728(8)? message: [ 'The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.' ], I20150715-11:46:17.728(8)? requestId: [ '##########' ] }

wuzhuzhu avatar Jul 15 '15 03:07 wuzhuzhu

 aliyuncli oss List
CreateTime           BucketLocation       BucketName
2015-06-06 16:03:46  oss-cn-beijing       xxxx

Bucket Number is: 1
0.528(s) elapsed

返回正常

不过 * aliyuncli oss ListAllDir xxx* 返回就是

Error Headers:

[('content-length', '441'), ('server', 'AliyunOSS'), ('connection', 'keep-alive'), ('x-oss-request-id', '5639B2444A9189587ABE6448'), ('date', 'Wed, 04 Nov 2015 07:22:44 GMT'), ('content-type', 'application/xml')]
Error Body:

<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>AccessDenied</Code>
  <Message>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</Message>
  <Bucket>xxx</Bucket>
  <Endpoint>oss-cn-beijing.aliyuncs.com</Endpoint>
  <RequestId>5639B2444A9189587ABE6448</RequestId>
  <HostId>xxx.oss.aliyuncs.com</HostId>
</Error>

Error Status:

403
ListAllDir Failed!

cmingxu avatar Nov 04 '15 07:11 cmingxu

I don't use aliyun oss any more. Anyone wants to maintain this?

haoxins avatar Nov 04 '15 09:11 haoxins

@coderhaoxin 真是太遗憾了!这是我见过的最好的oss包。可以添加我为开发者权限吗?

MillerRen avatar Dec 15 '16 10:12 MillerRen

@MillerRen invited ((^_^))~~

haoxins avatar Dec 16 '16 02:12 haoxins

@MillerRen what's your npm account ?

haoxins avatar Dec 16 '16 02:12 haoxins

@coderhaoxin renyufei

MillerRen avatar Dec 16 '16 03:12 MillerRen

@MillerRen npm owner added!

https://www.npmjs.com/package/aliyun-oss/access

haoxins avatar Dec 16 '16 06:12 haoxins

@coderhaoxin 3Q

MillerRen avatar Dec 16 '16 06:12 MillerRen