gesomax / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

httplib2 raised zlib.error: Error -3 while decompressing data: incorrect header check #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. http = httplib.Http(cache = '.cache', timeout = 180)
2. status, content = http.request
('http://finance.eastmoney.com/091207,1096,1253748.html')
3. exception raised

What is the expected output? What do you see instead?
the webpages, but exception occured!

What version of the product are you using? On what operating system?
httplib2-python3-0.5.0 on Windows XP with Service Pack 2

Please provide any additional information below.
here is the trace back info:
Traceback (most recent call last):
  File "<pyshell#96>", line 1, in <module>
    status, content = http.request
('http://finance.eastmoney.com/091207,1096,1253748.html')
  File "C:\Python31\lib\site-packages\httplib2\__init__.py", line 1088, in 
request
    (response, content) = self._request(conn, authority, uri, request_uri, 
method, body, headers, redirections, cachekey)
  File "C:\Python31\lib\site-packages\httplib2\__init__.py", line 873, in 
_request
    (response, content) = self._conn_request(conn, request_uri, method, 
body, headers)
  File "C:\Python31\lib\site-packages\httplib2\__init__.py", line 858, in 
_conn_request
    content = _decompressContent(response, content)
  File "C:\Python31\lib\site-packages\httplib2\__init__.py", line 318, in 
_decompressContent
    content = zlib.decompress(content)
zlib.error: Error -3 while decompressing data: incorrect header check

Original issue reported on code.google.com by jonathan.Admin on 14 Dec 2009 at 7:50

GoogleCodeExporter commented 8 years ago
looks like a dup of #69

Original comment by benjamin...@gmail.com on 27 Jan 2010 at 11:05

GoogleCodeExporter commented 8 years ago

Original comment by joe.gregorio@gmail.com on 15 Feb 2011 at 3:16