Bug 1216999 - requests.get returns garbled data
Summary: requests.get returns garbled data
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-requests
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ralph Bean
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-29 11:36 UTC by Tomas 'Sheldon' Radej
Modified: 2015-05-01 18:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-01 18:40:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomas 'Sheldon' Radej 2015-04-29 11:36:56 UTC
Description of problem:
In F22, running requests.get in Python 2 returns garbled data. This problem doesn't seem to be present in upstream version 2.6.2, so it may be a solution to update to this version in both F22 and rawhide.

Version-Release number of selected component (if applicable):
python-requests-2.6.0-1.fc22.noarch

How reproducible:
Always

Steps to Reproduce:
1. python -c "import requests; print(requests.get('http://github.com').content[:10])"

Actual results:


Expected results:
<!DOCTYPE 

Additional info:
v2.5.3 (F21 stable): No problem
v2.6.0 (F22 beta): Problem
v2.6.2 (upstream): No problem (tested in virtualenv)

Comment 1 Tomas 'Sheldon' Radej 2015-04-29 11:48:57 UTC
The "Actual results" are non-printable Unicode characters. They apparently got sanitized by Bugzilla.

Comment 2 Ralph Bean 2015-04-29 13:42:03 UTC
Known issue.  Sorry about this.  It has to do with chunked gzip encoding and:

1) is fixed in the requests 2.6.2 release but
2) requests 2.6.2 bundles an unreleased git snapshot copy of urllib3 but
3) the urllib3 guys seem unconvinced that its really fixed so they won't cut a matching release so
4) I need to package a git snapshot of urllib3 to get us working in rawhide and f22 again.

I thought the upstream release would be out by now, but apparently not.  I'll work on that git snapshot today to get us all working again.

Comment 3 Fedora Update System 2015-04-29 14:25:29 UTC
python-requests-2.6.2-1.fc22,python-urllib3-1.10.3-2.20150429git585983a.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/python-requests-2.6.2-1.fc22,python-urllib3-1.10.3-2.20150429git585983a.fc22

Comment 4 Fedora Update System 2015-05-01 16:43:38 UTC
python-urllib3-1.10.3-2.20150429git585983a.fc22, python-requests-2.6.2-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.