Hi,

This error indicates that the download is taking too long to complete.

-Marzia

On Sat, Jan 17, 2009 at 6:22 PM, Teng Yao <[email protected]> wrote:
>
> Here is my test code:
>
> #!/usr/bin/evn python
> # -*- coding: utf8 -*-
>
> from google.appengine.api import urlfetch
>
> data = urlfetch.fetch('http://www.kernel.org/pub/linux/kernel/v2.6/
> patch-2.6.28.bz2',
>                      allow_truncated=True)
> print 'Content-Type: text/plain'
> print
> print str((data.status_code, data.headers,
> data.content_was_truncated))
>
> and the online page is http://naive.appspot.com/test
>
> the log:
>
>      <class 'google.appengine.api.urlfetch_errors.DownloadError'>:
> ApplicationError: 5
>      Traceback (most recent call last):
>        File "/base/data/home/apps/naive/1.330777991388937356/
> test.py", line 7, in <module>
>          allow_truncated=True)
>        File "/base/python_lib/versions/1/google/appengine/api/
> urlfetch.py", line 273, in fetch
>          raise DownloadError(str(e))
>
>
> Why I still get DownloadError exception instead of truncated data?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to