hmmm... This is a rocket question.
can you send me a more complete example (the function, and the python
code to call it)?

On Dec 13, 7:39 am, Leo <lle...@gmail.com> wrote:
> Using Python 2.5.4 and web2py 1.84.4, I call a function decorated with
> @service.run from python using
>
> robj = urllib2.urlopen(urllib2.Request(url,data))
> robj.read()
>
> The .read() call fails with the following exception:
>
> ...
>   File "socket.pyc", line 304, in read
>   File "httplib.pyc", line 509, in read
>   File "httplib.pyc", line 548, in _read_chunked
> ValueError: invalid literal for int() with base 16: ''
>
> Searching the internet I found that this seems to be a reported issue
> with httplib:http://bugs.python.org/issue7013.
>
> It is not really a bug -- httplib is doing the right thing, but many
> servers out there, including the one on which bing runs, seem to be
> missing a 0 for the last chunk.
>
> Is the server used in the guts of web2py doing the wrong thing and
> returning a chunk missing the 0 size?
>
> Thanks,
> Leo.

Reply via email to