resolver404

19 views
Skip to first unread message

venkman

unread,
Jun 16, 2011, 11:21:29 PM6/16/11
to google-a...@googlegroups.com
We intermittently see 

Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/third_party/django-1.2/django/core/handlers/base.py", line 91, in get_response
    request.path_info)
  File "/base/python_runtime/python_lib/versions/third_party/django-1.2/django/core/urlresolvers.py", line 217, in resolve
    sub_match = pattern.resolve(new_path)
  File "/base/python_runtime/python_lib/versions/third_party/django-1.2/django/core/urlresolvers.py", line 233, in resolve
    raise Resolver404({'path' : path})
Resolver404: {'path': u''}

We see this for all paths for 5 minutes at a time and then it seems to go away for a day or 2 and then hit again. I looked at http://code.google.com/p/google-app-engine-django/issues/detail?id=169 but I'm not sure if it's related or not. I think our main.py properly cleans up on exceptions which if I understood 169 correctly was the issue there. Here's our main.py:

import sys
for k in [k for k in sys.modules if k.startswith('django')]: 
  del sys.modules[k] 
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from google.appengine.dist import use_library
use_library('django', '1.2')
import logging
from google.appengine.ext.webapp.util import run_wsgi_app
from django import db
from django.core import signals
import django.core.handlers.wsgi

def log_exception(sender, **kwargs):
    logging.exception('Exception in request:')
signals.got_request_exception.connect(log_exception)
signals.got_request_exception.disconnect(db._rollback_on_exception)

def main():
    application = django.core.handlers.wsgi.WSGIHandler()
    run_wsgi_app(application)

if __name__ == '__main__':
    main()


Anyone have any suggestions on what might be wrong?


Reply all
Reply to author
Forward
0 new messages