Closed Grinnz closed 7 years ago
Hi,
It looks like you've caught a bug! The serialization of the Attributes parameter is broken. Let me see if I can get you a quick fix (it looks very easy to fix)
Hi,
This has been fixed in 7b0e4f96a85f70ed9b87a5affd35bd5638f8b73a, which is on branch https://github.com/pplu/aws-sdk-perl/tree/fix/fixed-maps-serialization. Can you test out that this fixes your problems?
BTW: thanks for the detailed report. It helped write the test, debug and resolve faster 😃
The branch works great. Thanks!
This is fixed now in 0.29
The CreateQueue method of the SQS service has an 'Attributes' parameter which does not appear to be passed correctly to the API. Using this code (just for debugging):
The resulting request appears to have the following content:
So calling the API like this:
results in strange errors like "Unknown Attribute 10." and "Start of list element found where not expected". According to the API documentation, attributes should be passed as a numbered list with Name and Value parameters, such as the example at http://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_CreateQueue.html#API_CreateQueue_Examples so this request content should look something like:
A request in that format seems to succeed. It also looks like the same issue occurs with the SetQueueAttributes method.