Jump to solution
Details

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%.

Open PR/Commit
@@ -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,
fix.md
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).
Production impact:
  • 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…”
@chayim · 2021-09-27 · source
“> @leonpros There is no ZSET command”
@leonpros · 2021-09-27 · source
“This project definitely wouldn't document how to use it with robot, but the functions themselves would be documented”
@chayim · 2021-09-30 · source
“Some of the commands marked as complete, now have functions that raise NotImplementedError”
@chayim · 2021-10-18 · source

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
signature.txt
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.txt
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

When NOT to use: This fix should not be used if the application relies on older versions of Redis that do not support CLIENT GETREDIR.

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.

Get updates

We publish verified fixes weekly. No spam.

Subscribe

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

VersionStatus
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.