The Fix
pip install redis==7.1.0
Based on closed redis/redis-py issue #2279 · PR/commit linked
Production note: Most teams hit this during upgrades or environment changes. Roll out with a canary and smoke critical endpoints (health, OpenAPI/docs) before 100%.
@@ -167,5 +167,5 @@ class Pipeline(SearchCommands, redis.client.Pipeline):
-class AsyncPipeline(AsyncSearchCommands, AsyncioPipeline):
+class AsyncPipeline(AsyncSearchCommands, AsyncioPipeline, Pipeline):
"""AsyncPipeline for the module."""
from redis.client import Pipeline
from redis.asyncio.client import Pipeline as AsyncPipeline
...
if isinstance(res, Pipeline) or isinstance(res, AsyncPipeline):
return res
...
Re-run the minimal reproduction on your broken version, then apply the fix and re-run.
Option A — Upgrade to fixed release\npip install redis==7.1.0\nWhen NOT to use: This fix should not be applied if the application does not utilize asyncio Pipelines.\n\n
Why This Fix Works in Production
- Trigger: RediSearch: search command doesn't support asyncio Pipeline
- Mechanism: The search command fails to return results when using an asyncio Pipeline due to type checking issues
- Why the fix works: Fixes the async SEARCH pipeline issue by modifying the AsyncPipeline class to correctly handle both Pipeline types. (first fixed release: 7.1.0).
- If left unfixed, the same config can fail only in production (env differences), causing startup failures or partial feature outages.
Why This Breaks in Prod
- The search command fails to return results when using an asyncio Pipeline due to type checking issues
- Production symptom (often without a traceback): RediSearch: search command doesn't support asyncio Pipeline
Proof / Evidence
- GitHub issue: #2279
- Fix PR: https://github.com/redis/redis-py/pull/2316
- First fixed release: 7.1.0
- Reproduced locally: No (not executed)
- Last verified: 2026-02-09
- Confidence: 0.95
- Did this fix it?: Yes (upstream fix exists)
- Own content ratio: 0.64
Discussion
High-signal excerpts from the issue thread (symptoms, repros, edge-cases).
“The RediSearch search command returns an instance of the Result class except when the Redis client is a Pipeline because Pipeline returns itself instead of a result when you execute a command. There's code that checks for this in both the S”
Failure Signature (Search String)
- RediSearch: search command doesn't support asyncio Pipeline
- However, this check doesn't work if the `Pipeline` is from the `redis.asyncio.client` module. The following modification should fix the issue:
Copy-friendly signature
Failure Signature
-----------------
RediSearch: search command doesn't support asyncio Pipeline
However, this check doesn't work if the `Pipeline` is from the `redis.asyncio.client` module. The following modification should fix the issue:
Error Message
Signature-only (no traceback captured)
Error Message
-------------
RediSearch: search command doesn't support asyncio Pipeline
However, this check doesn't work if the `Pipeline` is from the `redis.asyncio.client` module. The following modification should fix the issue:
Minimal Reproduction
from redis.client import Pipeline
from redis.asyncio.client import Pipeline as AsyncPipeline
...
if isinstance(res, Pipeline) or isinstance(res, AsyncPipeline):
return res
...
What Broke
Users experience incorrect results or no results when executing search commands in an asyncio Pipeline.
Why It Broke
The search command fails to return results when using an asyncio Pipeline due to type checking issues
Fix Options (Details)
Option A — Upgrade to fixed release Safe default (recommended)
pip install redis==7.1.0
Use when you can deploy the upstream fix. It is usually lower-risk than long-lived workarounds.
Fix reference: https://github.com/redis/redis-py/pull/2316
First fixed release: 7.1.0
Last verified: 2026-02-09. Validate in your environment.
When NOT to Use This Fix
- This fix should not be applied if the application does not utilize asyncio Pipelines.
Verify Fix
Re-run the minimal reproduction on your broken version, then apply the fix and re-run.
Did This Fix Work in Your Case?
Quick signal helps us prioritize which fixes to verify and improve.
Prevention
- Capture the exact failing error string in logs and tests so you can reproduce via a minimal script.
- Pin production dependencies and upgrade only with a reproducible test that hits the failing path.
Version Compatibility Table
| Version | Status |
|---|---|
| 7.1.0 | Fixed |
Related Issues
No related fixes found.
Sources
We don’t republish the full GitHub discussion text. Use the links above for context.