Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING:boto:Unable to decode message #2965

Open
cancan101 opened this issue Feb 13, 2015 · 5 comments
Open

WARNING:boto:Unable to decode message #2965

cancan101 opened this issue Feb 13, 2015 · 5 comments

Comments

@cancan101
Copy link

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:

value = base64.b64decode(value.encode('utf-8')).decode('utf-8')

or more likely this:
boto.log.warning('Unable to decode message')

@cancan101
Copy link
Author

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.

@pconerly
Copy link

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

@mojogitoverhere
Copy link

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

@padudzinski
Copy link

+1 fixed it for me.

@pkoch
Copy link

pkoch commented Mar 21, 2016

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

Quarky9 added a commit to Zero-Down-Time/salt that referenced this issue Jan 29, 2018
gitebra pushed a commit to gitebra/salt that referenced this issue Feb 16, 2018
* upstream/develop:
  Added the option to explicitly specify the user for django commands
  Allow zookeeper znode creation to not require an ACL
  Correct formatting for lint
  Fix Comment being None not '' and inject quotes into the TXT ChangeRecords
  Surpress boto WARNING during decode, reference: boto/boto#2965
  update macports doc, portfile
rallytime pushed a commit to rallytime/salt that referenced this issue Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants