#3928: FastCGI Unhandled Exception
---------------------------------------------------+------------------------
   Reporter:  [EMAIL PROTECTED]                   |                Owner:  
adrian                   
     Status:  new                                  |            Component:  
django-admin.py runserver
    Version:  SVN                                  |           Resolution:      
                     
   Keywords:  runfcgi fastcgi unhandled exception  |                Stage:  
Unreviewed               
  Has_patch:  0                                    |           Needs_docs:  0   
                     
Needs_tests:  0                                    |   Needs_better_patch:  0   
                     
---------------------------------------------------+------------------------
Comment (by [EMAIL PROTECTED]):

 By applying the following patch to /usr/local/lib/python2.5/site-
 packages/django/core/servers/fastcgi.py:
 
 {{{
 --- fastcgi.py.orig     Wed Apr  4 21:51:34 2007
 +++ fastcgi.py  Wed Apr  4 21:52:00 2007
 @@ -118,7 +118,7 @@
      else:
          return fastcgi_help("ERROR: Implementation must be one of prefork
 or thread.")
 
 -    wsgi_opts['debug'] = False # Turn off flup tracebacks
 +    wsgi_opts['debug'] = True # Turn on flup tracebacks
 
      # Prep up and go
      from django.core.handlers.wsgi import WSGIHandler
 }}}
 
 and accessing http://127.0.0.1:85/, I get a long stack trace which ends
 like this:
 
 {{{
  /usr/local/lib/python2.5/site-packages/django/core/handlers/base.py in
 get_response(self=<django.core.handlers.wsgi.WSGIHandler object at
 0x831d7cc>, request=<WSGIRequest GET:<MultiValueDict: {}>,
 POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>)
    57         # Apply request middleware
    58         for middleware_method in self._request_middleware:
    59             response = middleware_method(request)
    60             if response:
    61                 return response
 response undefined, middleware_method = <bound method
 CommonMiddleware.process_request o...are.common.CommonMiddleware object at
 0x84281ec>>, request = <WSGIRequest GET:<MultiValueDict: {}>,
 POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
  /usr/local/lib/python2.5/site-packages/django/middleware/common.py in
 process_request(self=<django.middleware.common.CommonMiddleware object at
 0x84281ec>, request=<WSGIRequest GET:<MultiValueDict: {}>,
 POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>)
    39         # Append a slash if append_slash is set and the URL doesn't
 have a
    40         # trailing slash or a file extension.
    41         if settings.APPEND_SLASH and (old_url[1][-1] != '/') and
 ('.' not in old_url[1].split('/')[-1]):
    42             new_url[1] = new_url[1] + '/'
    43             if settings.DEBUG and request.method == 'POST':
 global settings = <django.conf.LazySettings object at 0x82deeac>,
 settings.APPEND_SLASH = True, old_url = ['127.0.0.1:85', ''], ].split
 undefined
 
 <type 'exceptions.IndexError'>: string index out of range
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3928#comment:2>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to