-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Received response with content-encoding: gzip, but failed to decode it #3849
Comments
This seems like the server is returning data it claims is gzipped, but isn't, or is invalid somehow. curl agrees with this assessment, as you can see by doing
You can work around this for now by setting the import requests
requests.get('http://gett.bike/', headers={'Accept-Encoding': 'identity'}) But I strongly recommend you reach out to the server operator and get them to fix their server. |
I'm now receiving that same error. I've even switched hosting providers. Here's my output. Any ideas?
|
This code raises the following exception:
Arch linux x64
requests==2.13.0
python=3.6.0
The text was updated successfully, but these errors were encountered: