Skip to content

Instantly share code, notes, and snippets.

@larstobi
Created February 20, 2012 13:17
Show Gist options
  • Select an option

  • Save larstobi/1869146 to your computer and use it in GitHub Desktop.

Select an option

Save larstobi/1869146 to your computer and use it in GitHub Desktop.
Error message
/Users/larstobi/.rvm/gems/ruby-1.8.7-p352/gems/excon-0.9.5/lib/excon/connection.rb:232:in `request_kernel': Expected(200) <=> Actual(400 Bad Request) (Excon::Errors::BadRequest)
request => {:scheme=>"https", :expects=>200, :path=>"/2010-10-01/hostedzone/asdf/rrset", :connect_timeout=>60, :method=>"POST", :instrumentor_name=>"excon", :query=>nil, :headers=>{"Date"=>"Mon, 20 Feb 2012 13:07:27 +0000", "X-Amzn-Authorization"=>"AWS3-HTTPS AWSAccessKeyId=asdf,Algorithm=HmacSHA1,Signature=asdf", "Content-Length"=>445, "Host"=>"route53.amazonaws.com:443"}, :host=>"route53.amazonaws.com", :body=>"<?xml version=\"1.0\" encoding=\"UTF-8\"?><ChangeResourceRecordSetsRequest xmlns=\"https://route53.amazonaws.com/doc/2010-10-01/\"><ChangeBatch><Changes><Change><Action>CREATE</Action><ResourceRecordSet><Name>mydns.example.net.</Name><Type>A</Type><TTL>60</TTL><ResourceRecords><ResourceRecord><Value>1.2.3.4</Value></ResourceRecord></ResourceRecords></ResourceRecordSet></Change></Changes></ChangeBatch></ChangeResourceRecordSetsRequest>", :mock=>nil, :read_timeout=>60, :retry_limit=>4, :port=>"443", :write_timeout=>60}
response => #<Excon::Response:0x10cff4968 @headers={"Date"=>"Mon, 20 Feb 2012 13:07:27 GMT", "Content-Type"=>"text/xml", "Content-Length"=>"341", "x-amzn-RequestId"=>"asdf"}, @status=400, @body="<?xml version=\"1.0\"?>\n<ErrorResponse xmlns=\"https://route53.amazonaws.com/doc/2010-10-01/\"><Error><Type>Sender</Type><Code>InvalidChangeBatch</Code><Message>Tried to create resource record set mydns.example.net., type A but it already exists</Message></Error><RequestId>asdf</RequestId></ErrorResponse>">
from /Users/larstobi/.rvm/gems/ruby-1.8.7-p352/gems/excon-0.9.5/lib/excon/connection.rb:89:in `request'
from /Users/larstobi/.rvm/gems/ruby-1.8.7-p352/gems/fog-1.1.2/lib/fog/core/connection.rb:20:in `request'
from /Users/larstobi/.rvm/gems/ruby-1.8.7-p352/gems/fog-1.1.2/lib/fog/aws/dns.rb:108:in `request'
from /Users/larstobi/.rvm/gems/ruby-1.8.7-p352/gems/fog-1.1.2/lib/fog/aws/requests/dns/change_resource_record_sets.rb:75:in `change_resource_record_sets'
from /Users/larstobi/.rvm/gems/ruby-1.8.7-p352/gems/fog-1.1.2/lib/fog/aws/models/dns/record.rb:52:in `save'
from ./xdct.rb:67
from ./xdct.rb:52:in `each'
from ./xdct.rb:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment