Boto: WARNING:boto:Unable to decode message

Created on 14 Feb 2015  路  5Comments  路  Source: boto/boto

I keep getting this warning:

WARNING:boto:Unable to decode message

when using SQS.

My message body is the string: {"uuid":"61db605b-b689-44ca-9cda-aef245e10b71"}.

I believe the warning is coming from: https://github.com/boto/boto/blob/5e5dc4c6b31de3331c6af918b2307869988e5a73/boto/sqs/jsonmessage.py#L35
or more likely this: https://github.com/boto/boto/blob/5e5dc4c6b31de3331c6af918b2307869988e5a73/boto/sqs/message.py#L172

Most helpful comment

I solved this warning by calling q.set_message_class(boto.sqs.message.RawMessage).

That being said, I would suggest improving the warning message to be more clear about the b64 decoding issue.

All 5 comments

I solved this warning by calling q.set_message_class(boto.sqs.message.RawMessage).

That being said, I would suggest improving the warning message to be more clear about the b64 decoding issue.

Good info, it helped my debugging. thanks @cancan101 And yeah, +1 for a more helpful message.

Thanks @cancan101, fixed my issue. +1 still get the same unhelpful error message.

+1 fixed it for me.

Same thing here. Maybe consider a custom message for this particular case?

Was this page helpful?
0 / 5 - 0 ratings