[rabbitmq-discuss] Python Pika Unicode error

Tim Watson tim at rabbitmq.com
Wed Mar 13 17:23:33 GMT 2013


Hi,

On 12 Mar 2013, at 22:16, 9ners wrote:
> getting the following while trying to receive raw data (from UDP source
> routed to rabbitmq exchange). Text or Syslog format works alright but errors
> out with raw message types. Please help
> 

[snip]

> 
> UnicodeDecodeError: 'utf8' codec can't decode bytes in position 26-27:
> invalid continuation byte
> 

This indicates that the sender needs to ensure that the relevant parts of the payload (i.e., the routing key in this case) are encoded as valid UTF-8. Rabbit is not changing this, so you need to fix up the sender.

Cheers,
Tim


More information about the rabbitmq-discuss mailing list