Yeah, I've read that stackoverflow post before. I'm actually using
both redis-py and tornado-redis for different parts of my application,
but these errors keep coming up and it's extremely hard for me to
trace where they are coming from. The Traceback doesn't touch on any
part of the application code, just in the tornado internals, which
make it very hard for me to pintpoint even which redis request is the
one causing the errors.
I use tornado-redis when I need to do something like a
subscribe/listen because that's locking - and instead i can just set a
callback and carry on. In other cases I use the sync redis-py client
because I need to know that "right now" I'm adding something to a list
or popping it off. This take just a second so I don't care so much
about needing to make that quick operation async, and it should be
independant of other instances of IOLoop right?
I'm getting this one all the time now, and I never used to get it
before. Does anyone have any tips for how to track down the problem?
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line
1021, in _stack_context_handle_exception
raise_exc_info((type, value, traceback))
File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py",
line 258, in _nested
yield vars
File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py",
line 228, in wrapped
callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornadoredis/client.py",
line 191, in read_callback
callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line
382, in inner
self.set_result(key, result)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line
315, in set_result
self.run()
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 343, in run
yielded = self.gen.throw(*exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornadoredis/client.py",
line 938, in listen
cmd_listen)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 366, in run
self.yield_point.start(self)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line
241, in start
self.func(*self.args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line
120, in wrapper
runner.run()
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 345, in run
yielded = self.gen.send(next)
File "/usr/local/lib/python2.7/dist-packages/tornadoredis/client.py",
line 489, in process_data
cmd_line)
ResponseError: ResponseError (on LISTEN [(), {}]): Unknown response type