Note that there are some explanatory texts on larger screens.

plurals
  1. POAWS::S3::CurrentBucketNotSpecified
    text
    copied!<p>AWS::S3::CurrentBucketNotSpecified</p> <p>No bucket name can be inferred from your current connection's address (`s3.amazonaws.com')</p> <p>Has anyone seen this before? The app with Rails 3 + paperclip + s3 was working great, then I upgraded to RVM and this happened.</p> <p><strong>/config/S3.yml</strong></p> <pre><code>common: &amp;common access_key_id: 123123123123123123 secret_access_key: asdasdasdasdasdasdasdasd development: &lt;&lt;: *common bucket: xxxx_dev test: &lt;&lt;: *common bucket: xxxx_test production: &lt;&lt;: *common bucket: xxxx_prod </code></pre> <p>In the model:</p> <pre><code> # Paperclip for User.photo has_attached_file :photo, :styles =&gt; { :thumb =&gt; "70x70&gt;" }, :path =&gt; "/assets/users/:id/:style/:basename.:extension", :storage =&gt; :s3, :s3_credentials =&gt; File.join(Rails.root, 'config', 's3.yml'), :s3_protocol =&gt; 'https', :use_timestamp =&gt; false, :default_style =&gt; :thumb, :default_url =&gt; '/images/profile_default_70x70.png' </code></pre> <p>Any suggestions or ideas on the issue or how to debug? Thanks</p> <p>UPDATE, I'm allowing for photos to be uploaded with a url as follows:</p> <pre><code> before_validation :download_remote_image, :if =&gt; :photo_url_provided? # Used to handle paperclip via an image URL def photo_url_provided? !self.photo_url.blank? end # Used to handle paperclip via an image URL def download_remote_image self.photo = do_download_remote_image end # Used to handle paperclip via an image URL def do_download_remote_image io = open(URI.parse(photo_url)) def io.original_filename; base_uri.path.split('/').last; end io.original_filename.blank? ? nil : io rescue # catch url errors with validations instead of exceptions (Errno::ENOENT, OpenURI::HTTPError, etc...) end </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload