Paperclip + S3在本地机器上工作,但不工作在Heroku上。它说“AWS :: S3 ::错误:: SignatureDoesNotMatch”Heroku回形针S3错误=> AWS :: S3 :: Errors :: SignatureDoesNotMatch
2012-04-20T21:24:37 + 00:00应用程式[web.1]:参数:{ “UTF8”=> “Γ”, “authenticit y_token”=>“MHt20N64y9L24Ga2y6gGj8hX06U + td17XIRdqMadcCQ =”, “post”=> {“title”=>“tes t”,“organisation_id”=>“1”,“content”=“ >“weeqw”, “attachments_attributes”=> {“0”=> {“pic”=>#>}}}, “commit”=>“创建帖子”} 2012-04-20T21:24:41 +00:00 app [web.1]: 已完成500次内部服务器错误344 6ms 2012-04-20T21:24:41 + 00:00 app [web.1]:2012-04-20T21:24:41 +00:00 应用[web.1]:AWS :: S3 :: Errors :: SignatureDoesNotMatch(请求 我们计算的签名与您提供的签名不匹配。车 CK密钥和签名方法):
这里是我的attachment.rb型号:
has_attached_file :pic, :styles => { :medium => "500x280>",:slide => "180x260>", :thumb => "150x100#" },
:storage => :s3,
:bucket => 'sample_bucket',
:s3_credentials => {
:access_key_id => 'ASDDSAMPLEKEYDFSDF',
:secret_access_key => 'Dfsdf887-sample-secret-key-dfdsasd',
}
什么可能是这个错误的原因是什么?