Jump to solution
Details

The Fix

pip install redis==7.1.0

Based on closed redis/redis-py issue #3035 · 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
@@ -1,3 +1,4 @@ @@ -1,3 +1,4 @@ + * Fix async `read_response` to use `disable_decoding`. * Add 'aclose()' methods to async classes, deprecate async close(). * Fix #2831, add auto_close_connection_pool=True arg to asyncio.Redis.from_url()
fix.md
Option A — Upgrade to fixed release\npip install redis==7.1.0\nWhen NOT to use: Do not use this fix if you require decoding for all responses.\n\nOption C — Workaround\n(as in https://github.com/redis/redis-py/issues/1006#issuecomment-1100506453 ), but it's not a very clean solution.\nWhen NOT to use: Do not use this fix if you require decoding for all responses.\n\n

Why This Fix Works in Production

  • Trigger: Users could not retrieve raw data from Redis, leading to data compatibility issues.
  • Mechanism: The async version of `read_response` did not utilize the `disable_decoding` parameter
  • Why the fix works: Fixes the async `read_response` method to utilize the `disable_decoding` parameter, addressing issue #3035. (first fixed release: 7.1.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 async version of `read_response` did not utilize the `disable_decoding` parameter
  • Production symptom (often without a traceback): Users could not retrieve raw data from Redis, leading to data compatibility issues.

Proof / Evidence

  • GitHub issue: #3035
  • Fix PR: https://github.com/redis/redis-py/pull/3042
  • First fixed release: 7.1.0
  • Reproduced locally: No (not executed)
  • Last verified: 2026-02-08
  • Confidence: 0.85
  • Did this fix it?: Yes (upstream fix exists)
  • Own content ratio: 0.76

Discussion

High-signal excerpts from the issue thread (symptoms, repros, edge-cases).

“Hi @MrDenkoV Thanks for reporting this! I think there is no reason for it and it's a bug. Do you want to open a PR…”
@dvora-h · 2023-11-13 · source
“Hi @dvora-h Thank you for your quick response! I will open a PR and fix it, as it seems you haven't started yet.”
@MrDenkoV · 2023-11-13 · source
“Hi @dvora-h, I opened the #3042”
@MrDenkoV · 2023-11-14 · source

Failure Signature (Search String)

  • Users could not retrieve raw data from Redis, leading to data compatibility issues.
Copy-friendly signature
signature.txt
Failure Signature ----------------- Users could not retrieve raw data from Redis, leading to data compatibility issues.

Error Message

Signature-only (no traceback captured)
error.txt
Error Message ------------- Users could not retrieve raw data from Redis, leading to data compatibility issues.

What Broke

Users could not retrieve raw data from Redis, leading to data compatibility issues.

Why It Broke

The async version of `read_response` did not utilize the `disable_decoding` parameter

Fix Options (Details)

Option A — Upgrade to fixed release Safe default (recommended)

pip install redis==7.1.0

When NOT to use: Do not use this fix if you require decoding for all responses.

Use when you can deploy the upstream fix. It is usually lower-risk than long-lived workarounds.

Option C — Workaround Temporary workaround

(as in https://github.com/redis/redis-py/issues/1006#issuecomment-1100506453 ), but it's not a very clean solution.

When NOT to use: Do not use this fix if you require decoding for all responses.

Use only if you cannot change versions today. Treat this as a stopgap and remove once upgraded.

Fix reference: https://github.com/redis/redis-py/pull/3042

First fixed release: 7.1.0

Last verified: 2026-02-08. Validate in your environment.

Get updates

We publish verified fixes weekly. No spam.

Subscribe

When NOT to Use This Fix

  • Do not use this fix if you require decoding for all responses.

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