Skip to content

fix Aliyun::OSS::ServerError: OSS authentication requires a valid Date#85

Open
caozhzh wants to merge 1 commit intoaliyun:masterfrom
caozhzh:master
Open

fix Aliyun::OSS::ServerError: OSS authentication requires a valid Date#85
caozhzh wants to merge 1 commit intoaliyun:masterfrom
caozhzh:master

Conversation

@caozhzh
Copy link

@caozhzh caozhzh commented Oct 10, 2020

ubuntu 18.04
ruby 2.5.1
there are ServerError, must add headers['x-oss-date']
Aliyun::OSS::ServerError: RequestId: 5F816C573E13173631578A19, Code: AccessDenied, Message: OSS authentication requires a valid Date., HostId: oss-cn-shanghai.aliyuncs.com, HTTPCode: 403
from xxx/.rvm/gems/ruby-2.3.0/gems/aliyun-sdk-0.8.0/lib/aliyun/oss/http.rb:275:in block in do_request' from xxx/.rvm/gems/ruby-2.3.0/gems/rest-client-2.0.2/lib/restclient/request.rb:807:in process_result'
from xxx/.rvm/gems/ruby-2.3.0/gems/rest-client-2.0.2/lib/restclient/request.rb:725:in block in transmit' from xxx/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/net/http.rb:853:in start'
from xxx/.rvm/gems/ruby-2.3.0/gems/rest-client-2.0.2/lib/restclient/request.rb:715:in transmit' from xxx/.rvm/gems/ruby-2.3.0/gems/rest-client-2.0.2/lib/restclient/request.rb:145:in execute'
from xxx/.rvm/gems/ruby-2.3.0/gems/aliyun-sdk-0.8.0/lib/aliyun/oss/http.rb:271:in do_request' from xxx/.rvm/gems/ruby-2.3.0/gems/aliyun-sdk-0.8.0/lib/aliyun/oss/http.rb:186:in get'
from xxx/.rvm/gems/ruby-2.3.0/gems/aliyun-sdk-0.8.0/lib/aliyun/oss/protocol.rb:54:in list_buckets' from xxx/.rvm/gems/ruby-2.3.0/gems/aliyun-sdk-0.8.0/lib/aliyun/oss/iterator.rb:49:in fetch'
from xxx/.rvm/gems/ruby-2.3.0/gems/aliyun-sdk-0.8.0/lib/aliyun/oss/iterator.rb:40:in fetch_more' from xxx/.rvm/gems/ruby-2.3.0/gems/aliyun-sdk-0.8.0/lib/aliyun/oss/iterator.rb:23:in block in next'
from xxx/.rvm/gems/ruby-2.3.0/gems/aliyun-sdk-0.8.0/lib/aliyun/oss/iterator.rb:21:in loop' from xxx/.rvm/gems/ruby-2.3.0/gems/aliyun-sdk-0.8.0/lib/aliyun/oss/iterator.rb:21:in next'
from (irb):25:in each' from (irb):25 from xxx/.rvm/rubies/ruby-2.3.0/bin/irb:11:in

'2.3.0 :026 >

@CLAassistant
Copy link

CLAassistant commented Oct 10, 2020

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0004%) to 98.378% when pulling eeecc54 on caozhzh:master into 1d573e7 on aliyun:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0004%) to 98.378% when pulling eeecc54 on caozhzh:master into 1d573e7 on aliyun:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants