Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing bucket and bucket_name #28

Open
syamilmj opened this issue Aug 10, 2016 · 0 comments
Open

Missing bucket and bucket_name #28

syamilmj opened this issue Aug 10, 2016 · 0 comments

Comments

@syamilmj
Copy link

Ran into a rather weird error today.

aws = {
  access_key_id: "xxx",
  secret_access_key_holder: "xxx",
  bucket: "xxx",
  region: "us-east-1",
}

[2] pry(main)> Refile::S3.new(prefix: "store", **aws)
=> #<Refile::S3:0x007fc30f4bc790
 @access_key_id="xxx",
 @bucket=,
 @bucket_name=,
 @hasher=#<Refile::RandomHasher:0x007fc30f4bc6a0>,
 @max_size=nil,
 @prefix="store",
 @s3=#<Aws::S3::Resource>,
 @s3_options={:region=>"us-east-1", :access_key_id=>"xxx", :secret_access_key=>"xxx"}>

As you can see, the @bucket and @bucket_name is empty even when bucket parameter has been supplied in the hash.

Funnily, changing :secret_access_key to something else, e.g. ::secret_access_key_temp makes the bucket & bucket_name reappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant