阿里云OSS连接报错

十月 18, 2017 3:04:17 下午 com.aliyun.oss logException
警告: [Server]Unable to execute HTTP request: The request signature we calculated does not match the signature you provided. Check your key and signing method.
[ErrorCode]: SignatureDoesNotMatch
[RequestId]: 59E6FCF295B328405B9F5B65
[HostId]: oss-cn-hangzhou.aliyuncs.com
[ResponseError]:
<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>SignatureDoesNotMatch</Code>
  <Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message>
  <RequestId>59E6FCF295B328405B9F5B65</RequestId>
  <HostId>oss-cn-hangzhou.aliyuncs.com</HostId>
  <OSSAccessKeyId>LTAIUZ5ZujmhQtCB</OSSAccessKeyId>
  <SignatureProvided>VKjxYih9PijspC8dc6nssiy1xdI=</SignatureProvided>
  <StringToSign>GET


Wed, 18 Oct 2017 07:04:17 GMT
/</StringToSign>
  <StringToSignBytes>47 45 54 0A 0A 0A 57 65 64 2C 20 31 38 20 4F 63 74 20 32 30 31 37 20 30 37 3A 30 34 3A 31 37 20 47 4D 54 0A 2F </StringToSignBytes>
</Error>

Exception in thread "main" com.aliyun.oss.OSSException: The request signature we calculated does not match the signature you provided. Check your key and signing method.
[ErrorCode]: SignatureDoesNotMatch
[RequestId]: 59E6FCF295B328405B9F5B65
[HostId]: oss-cn-hangzhou.aliyuncs.com
[ResponseError]:
<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>SignatureDoesNotMatch</Code>
  <Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message>
  <RequestId>59E6FCF295B328405B9F5B65</RequestId>
  <HostId>oss-cn-hangzhou.aliyuncs.com</HostId>
  <OSSAccessKeyId>LTAIUZ5ZujmhQtCB</OSSAccessKeyId>
  <SignatureProvided>VKjxYih9PijspC8dc6nssiy1xdI=</SignatureProvided>
  <StringToSign>GET


Wed, 18 Oct 2017 07:04:17 GMT
/</StringToSign>
  <StringToSignBytes>47 45 54 0A 0A 0A 57 65 64 2C 20 31 38 20 4F 63 74 20 32 30 31 37 20 30 37 3A 30 34 3A 31 37 20 47 4D 54 0A 2F </StringToSignBytes>
</Error>

    at com.aliyun.oss.common.utils.ExceptionFactory.createOSSException(ExceptionFactory.java:99)
    at com.aliyun.oss.internal.OSSErrorResponseHandler.handle(OSSErrorResponseHandler.java:69)
    at com.aliyun.oss.common.comm.ServiceClient.handleResponse(ServiceClient.java:248)
    at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:130)
    at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:68)
    at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:94)
    at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:149)
    at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:113)
    at com.aliyun.oss.internal.OSSBucketOperation.listBuckets(OSSBucketOperation.java:233)
    at com.aliyun.oss.internal.OSSBucketOperation.listBuckets(OSSBucketOperation.java:195)
    at com.aliyun.oss.OSSClient.listBuckets(OSSClient.java:332)

不用怀疑,你的账户密码错了。

猜你喜欢

转载自blog.csdn.net/u010162887/article/details/78273068
今日推荐