[rabbitmq-discuss] Weird unicode error popping up in pika 0.9.6

Gavin M. Roy gmr at meetme.com
Mon Aug 13 15:41:24 BST 2012


Please open a bug on the github repo: https://github.com/pika/pika.

It's worth noting 0.9.6 is not released, is not stable and I am currently
writing tests against 0.9.5 to vet 0.9.6 since there are so many different
patches to it that are not covered by existing tests.

On Mon, Aug 13, 2012 at 9:40 AM, Stephen Young <stephen.t.young at gmail.com>wrote:

> Hi there,
>
> I've been using version 0.9,6 pika in a stable environment for about a
> month and am suddenly encountering a unicode error that looks like:
>
> Traceback (most recent call last):
>   File
> "/devel/lib/python2.7/site-packages/Twisted-12.0.0-py2.7-macosx-10.7-x86_64.egg/twisted/internet/selectreactor.py",
> line 150, in _doReadOrWrite
>     why = getattr(selectable, method)()
>   File
> "/devel/lib/python2.7/site-packages/Twisted-12.0.0-py2.7-macosx-10.7-x86_64.egg/twisted/internet/tcp.py",
> line 199, in doRead
>     rval = self.protocol.dataReceived(data)
>   File "/devel/src/pika/pika/adapters/twisted_connection.py", line 378, in
> dataReceived
>     self._on_data_available(data)
>   File "/devel/src/pika/pika/connection.py", line 701, in
> _on_data_available
>     frame)                 # Args
>   File "/devel/src/pika/pika/callback.py", line 161, in process
>     callback(*args, **keywords)
>   File "/devel/src/pika/pika/channel.py", line 152, in
> _on_synchronous_complete
>     self.rpc(*method)
>   File "/devel/src/pika/pika/channel.py", line 114, in rpc
>     self.send_method(method)
>   File "/devel/src/pika/pika/channel.py", line 121, in send_method
>     self.connection._send_method(self.channel_number, method, content)
>   File "/devel/src/pika/pika/connection.py", line 781, in _send_method
>     self._send_frame(pika.frame.Method(channel_number, method))
>   File "/devel/src/pika/pika/adapters/twisted_connection.py", line 355, in
> _send_frame
>     marshalled_frame = frame.marshal()
>   File "/devel/src/pika/pika/frame.py", line 65, in marshal
>     return self._marshal(pieces)
>   File "/devel/src/pika/pika/frame.py", line 40, in _marshal
>     len(payload)) + payload + chr(spec.FRAME_END)
> exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in
> position 0: ordinal not in range(128)
>
>
> I'm using the twisted adapter, and I have a hunch that the problem is
> coming from there somewhere, but I'm pretty lost as far as what to do to
> fix this bug. Anyone have any ideas?
>
> Cheers,
> Stephen
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>


-- 

Gavin M. Roy
Chief Technology Officer

 <http://www.meetme.com/>
100 Union Square Drive
New Hope, PA 18938
p. +1.215.862.1162 x263
f. +1.215.862.0465

<https://www.facebook.com/pages/MeetMe/21931227129>
<https://twitter.com/meetme>
    <http://www.youtube.com/user/MeetMeVideos>

The public market leader in social discovery. (NYSE MKT: MEET)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120813/a8e9bd69/attachment.htm>


More information about the rabbitmq-discuss mailing list