Amazon SQS messages passing through boto garbled

I use a service that publishes messages for Amazon SQS, but my messages fail when I do the following in Python, via boto:

queue = SQS_CONNECTION.get_queue(QUEUE_NAME)
messages = queue.get_messages()

Messages are returned as strings of what appears to be base 64 encoded data

+3
source share
1 answer

How this discussion helped https://groups.google.com/forum/#!topic/boto-users/Pv5fUc_RdVU , the solution is as follows:

from boto.sqs.message import RawMessage

queue = SQS_CONNECTION.get_queue(QUEUE_NAME)
queue.set_message_class(RawMessage)
messages = queue.get_messages()
+4
source

All Articles