I am trying to use rabbitpy as rmq producer inside a celery task (once the task is completed, then send a msg to different service). I am getting this:
Nov 22 22:47:44 batman celery[18571]: [2017-11-22 17:17:44,421: WARNING/ForkPoolWorker-1] Exception in thread 0x7fab29e51290-io:
Nov 22 22:47:44 batman celery[18571]: Traceback (most recent call last):
Nov 22 22:47:44 batman celery[18571]: File "/usr/lib64/python2.7/threading.py", line 804, in __bootstrap_inner
Nov 22 22:47:44 batman celery[18571]: self.run()
Nov 22 22:47:44 batman celery[18571]: File "/srv/ethcld/lib/python2.7/site-packages/rabbitpy/io.py", line 411, in run
Nov 22 22:47:44 batman celery[18571]: self._loop.run()
Nov 22 22:47:44 batman celery[18571]: File "/srv/ethcld/lib/python2.7/site-packages/rabbitpy/io.py", line 207, in run
Nov 22 22:47:44 batman celery[18571]: self._poll()
Nov 22 22:47:44 batman celery[18571]: File "/srv/ethcld/lib/python2.7/site-packages/rabbitpy/io.py", line 252, in _poll
Nov 22 22:47:44 batman celery[18571]: self._data.write_buffer.append(frame.marshal(data[1], data[0]))
Nov 22 22:47:44 batman celery[18571]: File "/srv/ethcld/lib/python2.7/site-packages/pamqp/frame.py", line 103, in marshal
Nov 22 22:47:44 batman celery[18571]: return _marshal_method_frame(frame_value, channel_id)
Nov 22 22:47:44 batman celery[18571]: File "/srv/ethcld/lib/python2.7/site-packages/pamqp/frame.py", line 255, in _marshal_method_frame
Nov 22 22:47:44 batman celery[18571]: frame_value.marshal())
Nov 22 22:47:44 batman celery[18571]: File "/srv/ethcld/lib/python2.7/site-packages/pamqp/specification.py", line 191, in marshal
Nov 22 22:47:44 batman celery[18571]: output.append(encode.by_type(data_value, data_type))
Nov 22 22:47:44 batman celery[18571]: File "/srv/ethcld/lib/python2.7/site-packages/pamqp/encode.py", line 366, in by_type
Nov 22 22:47:44 batman celery[18571]: return short_string(value)
Nov 22 22:47:44 batman celery[18571]: File "/srv/ethcld/lib/python2.7/site-packages/pamqp/encode.py", line 191, in short_string
Nov 22 22:47:44 batman celery[18571]: raise TypeError("bytes, str, or unicode required")
Nov 22 22:47:44 batman celery[18571]: TypeError: bytes, str, or unicode required
I am trying to use rabbitpy as rmq producer inside a celery task (once the task is completed, then send a msg to different service). I am getting this:
The command which produces this is:
The definition of publisher method is:
I am not able to figure out what's the problem here :/