import botosqs = boto.connect_sqs()dummy = sqs.lookup("nosuchqueue")
400 Bad Request
<?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><Error><Type>Sender</Type><Code>AWS.SimpleQueueService.NonExistentQueue</Code><Message>The specified queue does not exist for this wsdl version.</Message><Detail/></Error><RequestId>1c4a0bfd-08b7-5aa1-ac59-470d20880b1a</RequestId></ErrorResponse>
Boto's documentation says that if the queue doesn't exist, the returned queue object should be None (it is) but the HTTP 400 response code is new. I've seen the same behavior using ec2.create_image() if the AMI name already exists:
EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidAMIName.Duplicate</Code><Message>AMI name CloudDOCX Ubuntu 12.04 - 20141124 ebs-ssd is already in use by AMI ami-04b4296c</Message></Error></Errors><RequestID>02713298-b33b-49be-85bf-bed5c4ebd65b</RequestID></Response>
Looking at boto/connector.py (get_object) shows that if the response status is other than 200, the above messages will be displayed.
I'm seeing this for boto versions 2.29.1 and 2.34.0. I don't think it's a boto problem per se but wanted to see if anyone else is seeing something similar.
Thanks much.
John M. Vogtle