myronmarston/vcr — Issue #125: Weird bugs when using VCR w/ fog for S3 stuff
Author: myronmarston
Created: 2012-01-16 05:35:18+00:00
State: open

I'm using VCR to test some s3 code that uses fog. The first time, I get a 404 from S3. When I run the test again (using the VCR cassette) it has a weird error:

```
XML declaration allowed only at the start of the document
# /Users/myron/.rvm/gems/ruby-1.9.2-p290@silo/gems/nokogiri-1.5.0/lib/nokogiri/xml/sax/push_parser.rb:47:in `native_write'
# /Users/myron/.rvm/gems/ruby-1.9.2-p290@silo/gems/nokogiri-1.5.0/lib/nokogiri/xml/sax/push_parser.rb:47:in `write'
# /Users/myron/.rvm/gems/ruby-1.9.2-p290@silo/gems/fog-1.1.2/lib/fog/core/connection.rb:21:in `block in request'
# /Users/myron/.rvm/gems/ruby-1.9.2-p290@silo/gems/excon-0.9.4/lib/excon/connection.rb:275:in `block in invoke_stub'
# /Users/myron/.rvm/gems/ruby-1.9.2-p290@silo/gems/excon-0.9.4/lib/excon/connection.rb:240:in `each'
# /Users/myron/.rvm/gems/ruby-1.9.2-p290@silo/gems/excon-0.9.4/lib/excon/connection.rb:240:in `invoke_stub'
# /Users/myron/.rvm/gems/ruby-1.9.2-p290@silo/gems/excon-0.9.4/lib/excon/connection.rb:143:in `request_kernel'
# /Users/myron/.rvm/gems/ruby-1.9.2-p290@silo/gems/excon-0.9.4/lib/excon/connection.rb:89:in `request'
# /Users/myron/.rvm/gems/ruby-1.9.2-p290@silo/gems/fog-1.1.2/lib/fog/core/connection.rb:26:in `request'
# /Users/myron/.rvm/gems/ruby-1.9.2-p290@silo/gems/fog-1.1.2/lib/fog/aws/storage.rb:381:in `request'
# /Users/myron/.rvm/gems/ruby-1.9.2-p290@silo/gems/fog-1.1.2/lib/fog/aws/requests/storage/get_bucket.rb:55:in `get_bucket'
# /Users/myron/.rvm/gems/ruby-1.9.2-p290@silo/gems/fog-1.1.2/lib/fog/aws/models/storage/directories.rb:24:in `get'
```