The Fix
pip install redis==7.1.0
Based on closed redis/redis-py issue #2131 Β· PR/commit linked
@@ -580,6 +580,19 @@ def parse_acl_getuser(response, **options):
data["passwords"] = list(map(str_if_bytes, data["passwords"]))
data["commands"] = str_if_bytes(data["commands"])
+ if isinstance(data["keys"], str) or isinstance(data["keys"], bytes):
+ data["keys"] = list(str_if_bytes(data["keys"]).split(" "))
+ if data["keys"] == [""]:
Option A β Upgrade to fixed release\npip install redis==7.1.0\nWhen NOT to use: Do not use this fix if the ACL GETUSER command is not being utilized.\n\n
Why This Fix Works in Production
- Trigger: ACL GETUSER - add selectors and change the format of key and channel patterns from a list to their rule representation
- Mechanism: The ACL GETUSER command did not properly handle key and channel patterns as lists
- Why the fix works: Adds selectors and changes the format of key and channel patterns in the ACL GETUSER command from a list to their rule representation, addressing issue #2131. (first fixed release: 7.1.0).
Why This Breaks in Prod
- The ACL GETUSER command did not properly handle key and channel patterns as lists
- Production symptom (often without a traceback): ACL GETUSER - add selectors and change the format of key and channel patterns from a list to their rule representation
Proof / Evidence
- GitHub issue: #2131
- Fix PR: https://github.com/redis/redis-py/pull/2161
- 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.70
Discussion
High-signal excerpts from the issue thread (symptoms, repros, edge-cases).
Failure Signature (Search String)
- ACL GETUSER - add selectors and change the format of key and channel patterns from a list to their rule representation
Copy-friendly signature
Failure Signature
-----------------
ACL GETUSER - add selectors and change the format of key and channel patterns from a list to their rule representation
Error Message
Signature-only (no traceback captured)
Error Message
-------------
ACL GETUSER - add selectors and change the format of key and channel patterns from a list to their rule representation
What Broke
Users experienced incorrect ACL behavior due to improper key and channel pattern handling.
Why It Broke
The ACL GETUSER command did not properly handle key and channel patterns as lists
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/2161
First fixed release: 7.1.0
Last verified: 2026-02-09. Validate in your environment.
When NOT to Use This Fix
- Do not use this fix if the ACL GETUSER command is not being utilized.
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.