redis-py
redis-py copied to clipboard
running dump() fails when decode_responses=True in a pipeline
This is an extension of issue #1254, which was partially (but I belive not fully) resolved in #1731.
I think that when non-decodable commands are called from within a pipeline, they are decoded anyway.
See my comment on the original issue here: https://github.com/redis/redis-py/issues/1254#issuecomment-1003683647
HI @brianmaissy This is a real bug, but however it doesn't make sense to use one of these commands in a pipeline, so for now we will leave it as an open bug.
Why doesn't it make sense to use dump()
in a pipeline? I do so in order to dump multiple keys.
@brianmaissy We should support this (and don't today), the best answer is to use a connection where deconde_responses is False. While I realize this isn't ideal, this is the best current answer.
tl;dr yes a bug we should fix in the future, and labelled accordingly.
Yeah that's the workaround I've been using. Thank you.
Since we added the NEVER_DECODE target as part of another bug - closing this off. It works now.
in what version is it fixed?
I think > 4.0.1. @dvora-h am I right?
I'm using 4.3.4, but it still doesn't work when the non-decodable command is used in a pipeline
This issue is marked stale. It will be closed in 30 days if it is not updated.
@chayim @dvora-h can you please confirm that this is still open?
@brianmaissy Yes