Hello , i have an application that uses carrierwave, that gem uses the
aws gem and i note that it have some problems with the s3 upload so i
make some tests and note that the problem was in aws gem. (using
aws-2.3.25)
i make this
# connects ok
>> @s3 = Aws::S3Interface.new(S3_PARAMS[:access_key_id], S3_PARAMS[:secret_access_key])
# list buckets , but with warnings
>> @s3.list_all_my_buckets.map{|bucket| bucket[:name]}
warning: peer certificate won't be verified in this SSL session
=> ["bucket1", "bucket2", "_bucket3"]
# fails !
>> @s3.put("bucket1", "test-aws/1", "test message", 'x-amz-meta-family'=>'Woohoo1!')
warning: peer certificate won't be verified in this SSL session
Aws::AwsError: MethodNotAllowed: The specified method is not allowed
against this resource.
REQUEST=
s3.amazonaws.com:443/
from /Users/michelson/Documents/ruby_on_rails/artenlinea/
vendor/bundle/gems/aws-2.3.25/lib/awsbase/right_awsbase.rb:697:in
`request_info_impl'
from /Users/michelson/Documents/ruby_on_rails/artenlinea/
vendor/bundle/gems/aws-2.3.25/lib/awsbase/right_awsbase.rb:462:in
`request_info2'
from /Users/michelson/Documents/ruby_on_rails/artenlinea/
vendor/bundle/gems/aws-2.3.25/lib/s3/right_s3_interface.rb:177:in
`request_info'
from /Users/michelson/Documents/ruby_on_rails/artenlinea/
vendor/bundle/gems/aws-2.3.25/lib/s3/right_s3_interface.rb:414:in
`put'
any ideas ? anyone with the same problem or its just me ?
regards