#31594: Add get_response_async for ASGIStaticFilesHandlerMixin
               Reporter:  Joshua Massover  |          Owner:  nobody
                   Type:  Bug              |         Status:  new
              Component:  Uncategorized    |        Version:  3.0
               Severity:  Normal           |       Keywords:
           Triage Stage:  Unreviewed       |      Has patch:  1
    Needs documentation:  0                |    Needs tests:  0
Patch needs improvement:  0                |  Easy pickings:  0
                  UI/UX:  0                |
 It looks like the StaticFilesHandlerMixin is missing the the async
 response function.

 Without this, when trying to use the ASGIStaticFilesHandler, this is the

 Exception inside application: 'NoneType' object is not callable
 Traceback (most recent call last):
   File ".../lib/python3.7/site-packages/daphne/cli.py", line 30, in asgi
     await self.app(scope, receive, send)
   File ".../src/django/django/contrib/staticfiles/handlers.py", line 86,
 in __call__
     return await super().__call__(scope, receive, send)
   File ".../src/django/django/core/handlers/asgi.py", line 161, in
     response = await self.get_response_async(request)
   File ".../src/django/django/core/handlers/base.py", line 148, in
     response = await self._middleware_chain(request)
 TypeError: 'NoneType' object is not callable

Ticket URL: <https://code.djangoproject.com/ticket/31594>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 

Reply via email to