Hi,
Have anyone idea about what is happening? It always work, by now it is getting
this error.
I'll appreciate any help.
This is my code.
image = self.request.get('userfile')
writable_file = files.gs.create(destinationPath,
mime_type='application/octet-stream', acl='public-read')
with files.open(writable_file, 'a') as fp:
fp.write(db.Blob(image))
files.finalize(writable_file)
ApplicationError: 7 Traceback (most recent call last): File
"/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py",
line 1511, in __call__ rv = self.handle_exception(request, response, e) File
"/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py",
line 1505, in __call__ rv = self.router.dispatch(request, response) File
"/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py",
line 1253, in default_dispatcher return route.handler_adapter(request,
response) File
"/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py",
line 1077, in __call__ return handler.dispatch() File
"/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py",
line 547, in dispatch return self.handle_exception(e, self.app.debug) File
"/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2.py",
line 545, in dispatch return method(*args, **kwargs) File
"/base/data/home/apps/s~drawanimating-sn/3.365383610740110081/controller/holdImage.py",
line 14, in post
self.response.out.write(HoldImageService().saveImage(self.request.get('userfile'),
self.request.get('imageName'), self.request.get('comment'),
self.request.get('userFacebookId'), self.request.get('tokenAuthApp'))) File
"/base/data/home/apps/s~drawanimating-sn/3.365383610740110081/model/service/HoldImageService.py",
line 54, in saveImage files.finalize(writable_file) File
"/python27_runtime/python27_lib/versions/1/google/appengine/api/files/file.py",
line 568, in finalize f.close(finalize=True) File
"/python27_runtime/python27_lib/versions/1/google/appengine/api/files/file.py",
line 291, in close self._make_rpc_call_with_retry('Close', request, response)
File
"/python27_runtime/python27_lib/versions/1/google/appengine/api/files/file.py",
line 427, in _make_rpc_call_with_retry _make_call(method, request, response)
File
"/python27_runtime/python27_lib/versions/1/google/appengine/api/files/file.py",
line 252, in _make_call _raise_app_error(e) File
"/python27_runtime/python27_lib/versions/1/google/appengine/api/files/file.py",
line 186, in _raise_app_error raise UnknownError(e) UnknownError:
ApplicationError: 7
Regards,
Danilo de Castro.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.