The Fix
pip install redis==4.0.0
Based on closed redis/redis-py issue #1546 · 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%.
@@ -675,6 +675,7 @@ class Redis(Commands, object):
'CLIENT UNBLOCK': lambda r: r and int(r) == 1 or False,
'CLIENT PAUSE': bool_ok,
+ 'CLIENT GETREDIR': int,
'CLIENT TRACKINGINFO': lambda r: list(map(str_if_bytes, r)),
'CLUSTER ADDSLOTS': bool_ok,
Option A — Upgrade to fixed release\npip install redis==4.0.0\nWhen NOT to use: This fix should not be used if the application relies on older versions of Redis that do not support CLIENT GETREDIR.\n\n
Why This Fix Works in Production
- Trigger: Unsupported Redis Commands as of 6.2.0
- Mechanism: The CLIENT GETREDIR command was not previously supported in redis-py
- Why the fix works: Added support for the CLIENT GETREDIR command in redis-py. (first fixed release: 4.0.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 CLIENT GETREDIR command was not previously supported in redis-py
- Production symptom (often without a traceback): Unsupported Redis Commands as of 6.2.0
Proof / Evidence
- GitHub issue: #1546
- Fix PR: https://github.com/redis/redis-py/pull/1623
- First fixed release: 4.0.0
- Reproduced locally: No (not executed)
- Last verified: 2026-02-09
- Confidence: 0.75
- Did this fix it?: Yes (upstream fix exists)
- Own content ratio: 0.69
Discussion
High-signal excerpts from the issue thread (symptoms, repros, edge-cases).
“@leonpros There is no ZSET command. ZRANGE is currently supported, and the extensions we believe are missing are documented above. Are there other parts of…”
“> @leonpros There is no ZSET command”
“This project definitely wouldn't document how to use it with robot, but the functions themselves would be documented”
“Some of the commands marked as complete, now have functions that raise NotImplementedError”
Failure Signature (Search String)
- Unsupported Redis Commands as of 6.2.0
- - [x] ACL DELUSER - support deletion of only one user (can't have a list of users)
Copy-friendly signature
Failure Signature
-----------------
Unsupported Redis Commands as of 6.2.0
- [x] ACL DELUSER - support deletion of only one user (can't have a list of users)
Error Message
Signature-only (no traceback captured)
Error Message
-------------
Unsupported Redis Commands as of 6.2.0
- [x] ACL DELUSER - support deletion of only one user (can't have a list of users)
What Broke
Users were unable to retrieve the client redirection information, leading to potential misconfigurations.
Why It Broke
The CLIENT GETREDIR command was not previously supported in redis-py
Fix Options (Details)
Option A — Upgrade to fixed release Safe default (recommended)
pip install redis==4.0.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/1623
First fixed release: 4.0.0
Last verified: 2026-02-09. Validate in your environment.
When NOT to Use This Fix
- This fix should not be used if the application relies on older versions of Redis that do not support CLIENT GETREDIR.
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 |
|---|---|
| 4.0.0 | Fixed |
Related Issues
No related fixes found.
Sources
We don’t republish the full GitHub discussion text. Use the links above for context.