bulk upload not working
Reported by an | October 15th, 2008 @ 07:35 PM | in UCL Demo
cut and pasted a csv of name, email, category (btw, what's category?). The following error was shown:
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last): File "/base/data/home/apps/heliosvoting/1.54/cherrypy/_cprequest.py", line 606, in respond
cherrypy.response.body = self.handler()
File "/base/data/home/apps/heliosvoting/1.54/cherrypy/_cpdispatch.py", line 24, in call
return self.callable(*self.args, **self.kwargs)
File "/base/data/home/apps/heliosvoting/1.54/base/REST.py", line 168, in default
return method(resource, *vpath, **params)
File "/base/data/home/apps/heliosvoting/1.54/base/init.py", line 25, in apply_before_filter
return func(self, *args, **kwargs)
File "/base/data/home/apps/heliosvoting/1.54/base/session.py", line 60, in ensure_auth
return func(self, *args, **kwargs)
File "/base/data/home/apps/heliosvoting/1.54/controllers/election.py", line 436, in voters_bulk_upload
v.insert()
File "/base/data/home/apps/heliosvoting/1.54/base/DBObjectGAE.py", line 113, in insert
self.save()
File "/base/data/home/apps/heliosvoting/1.54/models/modelsGAE.py", line 120, in save
super(Voter, self).save()
File "/base/data/home/apps/heliosvoting/1.54/models/modelsbase.py", line 295, in save
models.ElectionExponent.add_exp_to_election(self.election)
File "/base/data/home/apps/heliosvoting/1.54/models/modelsbase.py", line 233, in add_exp_to_election
pk = election.get_pk()
File "/base/data/home/apps/heliosvoting/1.54/models/modelsbase.py", line 64, in get_pk
return algs.EGPublicKey.fromJSONDict(utils.from_json(self.public_key_json))
File "/base/data/home/apps/heliosvoting/1.54/base/utils.py", line 266, in from_json
return simplejson.loads(json_str)
File "/base/python_lib/versions/1/django/utils/simplejson/init.py", line 232, in loads
return cls(encoding=encoding, **kw).decode(s)
File "/base/python_lib/versions/1/django/utils/simplejson/decoder.py", line 251, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/base/python_lib/versions/1/django/utils/simplejson/decoder.py", line 268, in raw_decode
obj, end = self._scanner.iterscan(s, **kw).next()
File "/base/python_lib/versions/1/django/utils/simplejson/scanner.py", line 40, in iterscan
end = len(string)
DeadlineExceededError
Powered by CherryPy 3.1.0
Comments and changes to this ticket
-
Ben Adida October 15th, 2008 @ 09:42 PM
this is the google app engine limitation: try uploading in smaller chunks, e.g. 30 voters at a time. Category is if you want to have multiple precincts for your election. It is not mandatory.
-
Ben Adida March 7th, 2009 @ 11:49 AM
- State changed from open to resolved
GAE limitation that should be now lifted.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
the Helios Voting System