qoobaa / s3

Library for accessing S3 objects and buckets, supports EU and US buckets
MIT License
258 stars 112 forks source link

Error with buckets method #110

Closed agrass closed 7 years ago

agrass commented 9 years ago

I'm with the last release (0.3.23) and some times the method "buckets" fails after a high timeout with this errors: "Hostname not known: s3.amazonaws.com", "The specified key does not exist S3::Error::NoSuchKey)" and "S3::Error::ResponseError (S3::Error::ResponseError)" . Anybody know why would be the reason of this errors?

Thanks!

qoobaa commented 9 years ago

I'm not using the gem atm, can anyone confirm it?

acolchagoff commented 8 years ago

you might try using a begin/rescue block to determine what the actual error is.

begin
  s.buckets  
rescue Exception => e  
  e.response.inspect  
end

I'm actually having a similar problem right now, and the error for me is Net::HTTPForbidden 403 Forbidden readbody=true