1.
postdata = """<?xml version="1.0" encoding="UTF-8"?>
... <ChangeResourceRecordSetsRequest
xmlns="https://route53.amazonaws.com/doc/2010-10-01/">
... <ChangeBatch>
... <Comment>
... Creating MYDOMAIN.com zone
... </Comment>
... <Changes>
... <Change>
... <Action>CREATE</Action>
... <ResourceRecordSet>
... <Name>MYDOMAIN.com.</Name>
... <Type>CNAME</Type>
... <TTL>14400</TTL>
... <ResourceRecords>
... <ResourceRecord>
... <Value>www.ANOTHERDOMAIN.com</Value>
... </ResourceRecord>
... </ResourceRecords>
... </ResourceRecordSet>
... </Change>
... </Changes>
... </ChangeBatch>
... </ChangeResourceRecordSetsRequest>
... """
2.
response = r53.change_rrsets(id,postdata)
What is the expected output? What do you see instead?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/boto-2.1.1-py2.7.egg/boto/route53/connection.py", line 291, in change_rrsets
body)
boto.route53.exception.DNSServerError: DNSServerError: 400 Bad Request
<?xml version="1.0"?>
<ErrorResponse
xmlns="https://route53.amazonaws.com/doc/2011-05-05/"><Error><Type>Sender</Type>
<Code>InvalidInput</Code><Message>Invalid XML ; cvc-elt.1: Cannot find the
declaration of element
'ChangeResourceRecordSetsRequest'.</Message></Error><RequestId>1d805baf-06f9-11e
1-bbf6-2d3eee7674ab</RequestId></ErrorResponse>
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
boto.Version '2.1.1'
Ubuntu 11.04
Linux seka 2.6.38-12-generic-pae #51-Ubuntu SMP Wed Sep 28 16:11:32 UTC 2011
i686 i686 i386 GNU/Linux
Please provide any additional information below.
The same XML works using curl ...
dnscurl.pl --keyname bob -- -H "Content-Type: tex=UTF-8" -X POST --upload-file
./cname.xml https://route53.amazonaws.com/2010-10-01/hostedzone/??????????/rrset
Original issue reported on code.google.com by t...@jalberts.com on 4 Nov 2011 at 3:50
Original issue reported on code.google.com by
t...@jalberts.com
on 4 Nov 2011 at 3:50