views:

36

answers:

1

Im getting this error when I try and make an object. Here is my routine:

service = S3::Service.new(
    :access_key_id     => S3_ACCESS_KEY,
    :secret_access_key => S3_SECRET
  )
puts "connection established with s3"

puts "finding bucket"
bucket = service.buckets.find("test")
puts "building object"
object = bucket.objects.build("json_export/venues.txt")
puts "saving object"
object.save

It breaks after I see "saving object" so i'm assuming it's having trouble with object.save

It's a european bucket

What am I doing wrong?

A: 

Which library are you using.

I made a quick search and I guess you are using S3. Looking at the example in the homepage, you forgot to assign the content = to the object.

Also, have a look at the AWS::S3 project.

Simone Carletti
this didn't seem to help
jtmkrueger