On Wed, Sep 16, 2009 at 7:37 PM, Dave <[email protected]> wrote: > > Is there a way to catch this, so I can at least show a more graceful > error? It doesn't seem to be an exception. >
As the traceback indicates, it's a (urlfetch.)DownloadError, which you can catch like any other exception. -Nick Johnson > > On Sep 16, 10:21 am, Benjamin Schuster-Böckler <[email protected]> > wrote: > > Yup, I've been seeing a fair number of those, too. I guess it means > > the urlfetch fails for some reason. Would be nice to know if this can > > be avoided, or if it's just something we have to live with. > > > > Ben > > > > -- > > Benjamin Schuster-Böckler > > [email protected] > > +43 60 8927407 > > > > On 16 Sep 2009, at 19:06,Dave<[email protected]> wrote: > > > > > > > > > Sometimes when performing this request: > > > > > client = gdata.spreadsheet.service.SpreadsheetsService() > > > session_token = client.token_store.find_token(flubaroo.token_url) > > > gdata.alt.appengine.run_on_appengine(client) > > > try: > > > sfeed = client.GetSpreadsheetsFeed() > > > > > I see the error below come up in my browser. Any ideas? > > > > > Traceback (most recent call last): > > > File "/base/python_lib/versions/1/google/appengine/ext/webapp/ > > > __init__.py", line 507, in __call__ > > > handler.get(*groups) > > > File "/base/data/home/apps/flubaroo/1.336381965530829925/main.py", > > > line 58, in get > > > sfeed = client.GetSpreadsheetsFeed() > > > File "/base/data/home/apps/flubaroo/1.336381965530829925/gdata/ > > > spreadsheet/service.py", line 96, in GetSpreadsheetsFeed > > > > > converter=gdata.spreadsheet.SpreadsheetsSpreadsheetsFeedFromString) > > > File "/base/data/home/apps/flubaroo/1.336381965530829925/gdata/ > > > service.py", line 1012, in Get > > > headers=extra_headers) > > > File "/base/data/home/apps/flubaroo/1.336381965530829925/atom/ > > > __init__.py", line 93, in optional_warn_function > > > return f(*args, **kwargs) > > > File "/base/data/home/apps/flubaroo/1.336381965530829925/atom/ > > > service.py", line 182, in request > > > data=data, headers=all_headers) > > > File "/base/data/home/apps/flubaroo/1.336381965530829925/gdata/ > > > auth.py", line 725, in perform_request > > > return http_client.request(operation, url, data=data, > > > headers=headers) > > > File "/base/data/home/apps/flubaroo/1.336381965530829925/gdata/alt/ > > > appengine.py", line 144, in request > > > method=method, headers=all_headers, follow_redirects=False)) > > > File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", > > > line 241, in fetch > > > return rpc.get_result() > > > File "/base/python_lib/versions/1/google/appengine/api/ > > > apiproxy_stub_map.py", line 458, in get_result > > > return self.__get_result_hook(self) > > > File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", > > > line 331, in _get_fetch_result > > > raise DownloadError(str(err)) > > > DownloadError: ApplicationError: 5 > > > -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
