aliyun-oss
aliyun-oss copied to clipboard
list的时候没问题,进行文件操作的时候报错AccessDenied没有定义endpoint
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: [ '##########' ] }
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!
I don't use aliyun oss
any more. Anyone wants to maintain this?
@coderhaoxin 真是太遗憾了!这是我见过的最好的oss包。可以添加我为开发者权限吗?
@MillerRen invited ((^_^))~~
@MillerRen what's your npm account
?
@coderhaoxin renyufei
@MillerRen npm owner added!
https://www.npmjs.com/package/aliyun-oss/access
@coderhaoxin 3Q