DownloadError: ApplicationError: 5 Using GData Provisioning API

9 views
Skip to first unread message

David Cifuentes

unread,
Mar 9, 2009, 8:03:11 PM3/9/09
to Google App Engine
Hello,

I'm getting this error when I'm using the GData Provisioning API to
create user accounts from GAE. The weird thing is that it works well
on the development environment and even in the production server the
accounts are actually being created in Apps. I've read about this
error in other threads but there is no final solution. Can I just
catch and ignore this error?? is there a way to check if the account
was created or not depending on the availability of the provisioning
API??

"/base/data/home/apps/wiivalley/1.331910885804920038/common/zip-
packages/django-1.0.2.zip/django/core/handlers/base.py", line 86, in
get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/base/data/home/apps/wiivalley/1.331910885804920038/
registration/views.py", line 67, in activate
account = RegistrationProfile.objects.activate_user
(activation_key)
File "/base/data/home/apps/wiivalley/1.331910885804920038/
registration/models.py", line 85, in activate_user
service.CreateUser(user_name=user.username,
family_name=user.last_name, given_name=user.first_name,
password=profile.sha_password, password_hash_function='SHA-1')
File "/base/data/home/apps/wiivalley/1.331910885804920038/gdata/apps/
service.py", line 340, in CreateUser
return gdata.apps.UserEntryFromString(str(self.Post(user_entry,
uri)))
File "/base/data/home/apps/wiivalley/1.331910885804920038/gdata/
service.py", line 1147, in Post
media_source=media_source, converter=converter)
File "/base/data/home/apps/wiivalley/1.331910885804920038/gdata/
service.py", line 1232, in PostOrPut
headers=extra_headers)
File "/base/data/home/apps/wiivalley/1.331910885804920038/atom/
service.py", line 176, in request
data=data, headers=all_headers)
File "/base/data/home/apps/wiivalley/1.331910885804920038/gdata/
auth.py", line 704, in perform_request
return http_client.request(operation, url, data=data,
headers=headers)
File "/base/data/home/apps/wiivalley/1.331910885804920038/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 273, in fetch
raise DownloadError(str(e))
DownloadError: ApplicationError: 5

Thanks for any help.

David Cifuentes
Eforcers.com
Bogotá, Colombia

scott

unread,
Mar 11, 2009, 1:08:19 AM3/11/09
to Google App Engine
David,

I'm receiving the same error and similar results albeit with a
different API. This happens when I try to create a new empty (not
uploaded) spreadsheet. The spreadsheet shows up, but I still get
ApplicationError:5. Until I can find the solution, I've chosen to just
catch the exception and work around it. On my dev engine I receive a
slightly different exception, ApplicationError:2 timeout. This happens
on the request to google. Again, in dev even though I get the error
the spreadsheet is created. The details of the request are listed
below. The request looks to be in line with the API sample code at
http://groups.google.com/group/Google-Docs-Data-APIs/browse_frm/thread/26d983bfda97d1fe
and http://code.google.com/apis/documents/docs/2.0/developers_guide_protocol.html#UploadingMetadata.

I'll keep looking and will let you know if I find anything out.

Scott

operation str: POST
url Url: http://docs.google.com/feeds/documents/private/full
headers dict: {'Content-Length': '254', 'Content-Type': 'application/
atom+xml', 'User-Agent': 'None GData-Python/1.2.2'}
data GDataEntry:
<?xml version='1.0' encoding='UTF-8'?>
<ns0:entry xmlns:ns0="http://www.w3.org/2005/Atom">
<ns0:category scheme="http://schemas.google.com/g/2005#kind"
term="http://schemas.google.com/docs/2007#spreadsheet" /
><ns0:title>NoNameSheet</ns0:title>
</ns0:entry>

From the error log:
File "/base/data/home/apps/mamooproject/1.331984609576213456/gdata/
service.py", line 1147, in Post
media_source=media_source, converter=converter)
File "/base/data/home/apps/mamooproject/1.331984609576213456/gdata/
service.py", line 1232, in PostOrPut
headers=extra_headers)
File "/base/data/home/apps/mamooproject/1.331984609576213456/atom/
service.py", line 176, in request
data=data, headers=all_headers)
File "/base/data/home/apps/mamooproject/1.331984609576213456/gdata/
auth.py", line 704, in perform_request
return http_client.request(operation, url, data=data,
headers=headers)
File "/base/data/home/apps/mamooproject/1.331984609576213456/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 273, in fetch
raise DownloadError(str(e))
DownloadError: ApplicationError: 5


On Mar 9, 7:03 pm, David Cifuentes <david.cifuen...@eforcers.com>
wrote:
> Hello,
>
> I'm getting this error when I'm using the GData Provisioning API to
> create user accounts from GAE. The weird thing is that it works well
> on the development environment and even in the production server the
...

David Cifuentes

unread,
Mar 13, 2009, 8:57:34 PM3/13/09
to Google App Engine
Thanks for your response Scott,

I guess it happens the same with all GData API's. It's kind of ironic,
given that they are running in the same Google data centers. I'll be
watching any progress on this.

David


On 11 mar, 00:08, scott <scottums...@gmail.com> wrote:
> David,
>
> I'm receiving the same error and similar results albeit with a
> different API. This happens when I try to create a new empty (not
> uploaded) spreadsheet. The spreadsheet shows up, but I still get
> ApplicationError:5. Until I can find the solution, I've chosen to just
> catch the exception and work around it. On my dev engine I receive a
> slightly different exception, ApplicationError:2 timeout. This happens
> on the request to google. Again, in dev even though I get the error
> the spreadsheet is created. The details of the request are listed
> below. The request looks to be in line with the API sample code athttp://groups.google.com/group/Google-Docs-Data-APIs/browse_frm/threa...
> and  http://code.google.com/apis/documents/docs/2.0/developers_guide_proto....
> On Mar 9, 7:03 pm, DavidCifuentes<david.cifuen...@eforcers.com>
Reply all
Reply to author
Forward
0 new messages