1

我正在尝试使用 S3 动态存储作为 AWS S3 的替代品。我通过 Ruby 和carrierwave-aws使用它。

我所做的唯一更改是使用不同的凭据(我从 Swisscom 开发者控制台获得密钥和秘密)和https://ds31s3.swisscom.com作为 endoint。

现在无法克服Access Denied来自carrierwave的错误消息,尽管我可以从日志中看到看起来像正确的请求:

[httplog] Connecting: documents.ds31s3.swisscom.com:443
[httplog] Sending: PUT http://documents.ds31s3.swisscom.com:443/uploads/financial_information/document/3/17/erd.pdf
[httplog] Header: content-type: application/pdf
[httplog] Header: accept-encoding:
[httplog] Header: user-agent: aws-sdk-ruby2/2.1.29 ruby/2.2.3 x86_64-darwin15 resources
[httplog] Header: x-amz-acl: public-read
[httplog] Header: expect: 100-continue
[httplog] Header: content-md5: 3j2Km8Dc2/50bZyh4a1Qyw==
[httplog] Header: date: Wed, 11 May 2016 14:21:56 GMT
[httplog] Header: authorization: AWS _REDACTED_MY_SECRETS_
[httplog] Header: content-length: 62556
[httplog] Header: accept: */*
[httplog] Status: 403
[httplog] Benchmark: 1.3060949619975872 seconds
[httplog] Header: date: Wed, 11 May 2016 14:21:57 GMT
[httplog] Header: server: Apache
[httplog] Header: content-length: 110
[httplog] Header: content-type: application/xml
[httplog] Response: (not available yet)

有谁知道那是关于什么的?

4

0 回答 0