Urrlib2 IncompleteRead error

D

dirknbr

I am running urllib2.request and get this response when I do the read.
Any ideas what causes this?

return response.read()
File "C:\Python26\lib\socket.py", line 329, in read
data = self._sock.recv(rbufsize)
File "C:\Python26\lib\httplib.py", line 518, in read
return self._read_chunked(amt)
File "C:\Python26\lib\httplib.py", line 561, in _read_chunked
raise IncompleteRead(''.join(value))
IncompleteRead: IncompleteRead(3235 bytes read)

Dirk
 
G

Gabriel Genellina

I am running urllib2.request and get this response when I do the read.
Any ideas what causes this?

return response.read()
  File "C:\Python26\lib\socket.py", line 329, in read
    data = self._sock.recv(rbufsize)
  File "C:\Python26\lib\httplib.py", line 518, in read
    return self._read_chunked(amt)
  File "C:\Python26\lib\httplib.py", line 561, in _read_chunked
    raise IncompleteRead(''.join(value))
IncompleteRead: IncompleteRead(3235 bytes read)

Looks like a server error; a chunked transfer encoding finished before
reaching the expected size.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top