aliyun / aliyun-oss-ruby-sdk

Aliyun OSS SDK for Ruby
http://www.rubydoc.info/gems/aliyun-sdk/
MIT License
140 stars 67 forks source link

key not found: :ciphers #62

Open ghost opened 6 years ago

ghost commented 6 years ago

On MAC, ruby SDK STS authorization is used for error reporting:

use code:

sts = Aliyun::STS::Client.new(
      access_key_id: 'LTAI8vWypOgeFVqB',
      access_key_secret: 'ghiXS9HQnosR9f9Bw191U7DloNECDp')

token = sts.assume_role('acs:ram::1554555789514450:role/test-bucket-write', 'user1')

Both access_key_id and access_key_secret are subaccounts,Run it,The error log is as follows

KeyError (key not found: :ciphers):

aliyun_sdk.log

I, [2017-12-08T20:22:47.545388 #30297]  INFO -- : Begin assume role, role: acs:ram::1554555789514450:role/test-bucket-write, session: user1, policy: , duration: 3600

I use rvm isntall ruby-dev,use brew install zlib,

Help think!

BranLiang commented 6 years ago

Confirmed. I have the same problem