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:

http://s3.amazonaws.com/gigbnb/profiles/profile_pics/000/000/002/small/anthony_candaele-300x300.jpg?1464956858

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

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -