Urrlib2 IncompleteRead error

Discussion in 'Python' started by dirknbr, Jul 27, 2010.

  1. dirknbr

    dirknbr Guest

    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
     
    dirknbr, Jul 27, 2010
    #1
    1. Advertising

  2. On 27 jul, 11:00, dirknbr <> wrote:

    > 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.

    --
    Gabriel Genellina
     
    Gabriel Genellina, Aug 4, 2010
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. hfk0
    Replies:
    2
    Views:
    21,731
  2. JavaQueries
    Replies:
    1
    Views:
    3,752
    John C. Bollinger
    Mar 1, 2005
  3. Balaji
    Replies:
    3
    Views:
    10,177
  4. Replies:
    2
    Views:
    379
    Facundo Batista
    Jan 17, 2007
  5. Replies:
    3
    Views:
    339
    Michael J‭. ‬Fromberger
    Aug 7, 2007
Loading...

Share This Page