Skip to content

Instantly share code, notes, and snippets.

@sergray
Created March 22, 2011 10:02
Show Gist options
  • Save sergray/881008 to your computer and use it in GitHub Desktop.
Save sergray/881008 to your computer and use it in GitHub Desktop.
traceback of UnicodeDecodeError in pyredis transport of kombu
Traceback (most recent call last):
...
File "ve/lib/python2.6/site-packages/celery/task/base.py", line 320, in delay
return self.apply_async(args, kwargs)
File "ve/lib/python2.6/site-packages/celery/task/base.py", line 442, in apply_async
**options)
File "ve/lib/python2.6/site-packages/celery/app/amqp.py", line 230, in delay_task
send(body, exchange=exchange, **extract_msg_options(kwargs))
File "ve/lib/python2.6/site-packages/kombu/connection.py", line 196, in _insured
return fun(*args, **kwargs)
File "ve/lib/python2.6/site-packages/kombu/compat.py", line 101, in send
return self.publish(*args, **kwargs)
File "ve/lib/python2.6/site-packages/kombu/messaging.py", line 129, in publish
immediate, exchange=exchange)
File "ve/lib/python2.6/site-packages/kombu/entity.py", line 206, in publish
immediate=immediate)
File "ve/lib/python2.6/site-packages/kombu/transport/virtual/__init__.py", line 335, in basic_publish
self._put(queue, message, **kwargs)
File "ve/lib/python2.6/site-packages/kombu/transport/pyredis.py", line 237, in _put
self.client.lpush(queue, serialize(message))
File "ve/lib/python2.6/site-packages/anyjson/__init__.py", line 124, in <lambda>
serialize = lambda value: implementation.serialize(value)
File "ve/lib/python2.6/site-packages/anyjson/__init__.py", line 84, in serialize
return self._encode(data)
File "/usr/lib/pymodules/python2.6/simplejson/__init__.py", line 261, in dumps
return _default_encoder.encode(obj)
File "/usr/lib/pymodules/python2.6/simplejson/encoder.py", line 214, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/pymodules/python2.6/simplejson/encoder.py", line 282, in iterencode
return _iterencode(o, 0)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 378: invalid continuation byte
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
(Pdb) o['body'][378]
'\xe9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment