In order to get around the 1000 file limit I have put files in to the
database (one file per entity in a Blob property). To return a file
the following code is invoked:

def returnfile(request):
  response = HttpResponse()
  ref = request.get_full_path()
  logging.info('returnfile='+ref)
  x = FileStore.gql('where Reference = :1', ref).get()
  if x == None:
    return HttpResponse("OK")
  response.headers['Content-Type'] = x.Type
  response.write(x.Data)
  return response

Occasionally this routine fails. Here is the message from one of the
failures:

I 02-18 03:24PM 52.384 returnfile=/TQP-US/Language/US-TQ/Course/
BasicKeyboard/WorkSpace/Lesson3a/bin/Lesson3a.swf
See details
E 02-18 03:24PM 55.409 Exception in request: Traceback (most recent
call last): File "/base/python_lib/versions/1/django/core/handlers/
base.py", line 77, in get_response
E 02-18 03:24PM 55.501 <class 'django.template.TemplateDoesNotExist'>:
500.html Traceback (most recent call last): File "/base/data/home/apps/
kbdlessons/1-01.3314965955625

The Blob in this instance is 398681 bytes in size. Calls before and
after this for the same file worked. There were no changes uploaded
during any of this. The request should not have failed.

This same routine used to randomly fail with a DeadlineExceeded error.

We have just one tester hammering away on this at the moment and they
can't get through even half a day without one of these errors.

--~--~---------~--~----~------------~-------~--~----~
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