ruby on rails - The bucket you are attempting to access must be addressed using the specified endpoint -
i'm using paperclip 5.0.0.beta2 in latest rails (4.2.6) project. application hosted on heroku. can upload image , seems stored in bucket on amazon s3. in browser image appears have broken url, although it's point bucket on amazon s3, url is:
when enter url in browser, xml page error message:
the bucket attempting access must addressed using specified endpoint. please send future requests endpoint.
it looks there issue s3 endpoint.
however set region (eu-west-1) in configuration file:
config/environments/production.rb config.paperclip_defaults = { storage: :s3, s3_region: env.fetch('aws_region'), s3_credentials: { bucket: env.fetch('s3_bucket_name'), access_key_id: env.fetch('aws_access_key_id'), secret_access_key: env.fetch('aws_secret_access_key'), } }
my github repository at:
https://github.com/acandael/gigbnb
does have idea what's going on?
thanks help,
anthony
this workaround fixed issue me. it's presented aminariana
Comments
Post a Comment