Change8
Error1 reports

Fix ContentDecodingError

in Requests

Solution

ContentDecodingError in requests usually arises when the server sends compressed data (like gzip) without properly indicating the encoding or with a mismatch between the indicated and actual encoding. To fix this, try explicitly setting the `Accept-Encoding` header to `'identity'` to disable compression or ensure the server is correctly setting the `Content-Encoding` header to match the compression used, and that `requests` can handle it. If the server is sending corrupted compressed data, examine server-side configuration.

Related Issues

Real GitHub issues where developers encountered this error:

Timeline

First reported:Jan 31, 2025
Last reported:Jan 31, 2025

Need More Help?

View the full changelog and migration guides for Requests

View Requests Changelog