#29803: Django throws 500, when running development server and json request is
missing trailing /
-------------------------------------+-------------------------------------
               Reporter:             |          Owner:  nobody
  pzeinlinger                        |
                   Type:  Bug        |         Status:  new
              Component:  Core       |        Version:  2.1
  (Management commands)              |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Discovered today after switching to python:3.7 base image from
 python:3.7-alpine. When sending an application/json request to a correct
 URL with a missing trailing slash, I get a 500 back.
 Traceback:
 django_1    | Traceback (most recent call last):
 django_1    |   File "/usr/local/lib/python3.7/site-
 packages/django/contrib/staticfiles/handlers.py", line 65, in __call__
 django_1    |     return self.application(environ, start_response)
 django_1    |   File "/usr/local/lib/python3.7/site-
 packages/django/core/handlers/wsgi.py", line 142, in __call__
 django_1    |     response = self.get_response(request)
 django_1    |   File "/usr/local/lib/python3.7/site-
 packages/django/core/handlers/base.py", line 78, in get_response
 django_1    |     response = self._middleware_chain(request)
 django_1    |   File "/usr/local/lib/python3.7/site-
 packages/django/core/handlers/exception.py", line 36, in inner
 django_1    |     response = response_for_exception(request, exc)
 django_1    |   File "/usr/local/lib/python3.7/site-
 packages/django/core/handlers/exception.py", line 90, in
 response_for_exception
 django_1    |     response = handle_uncaught_exception(request,
 get_resolver(get_urlconf()), sys.exc_info())
 django_1    |   File "/usr/local/lib/python3.7/site-
 packages/django/core/handlers/exception.py", line 125, in
 handle_uncaught_exception
 django_1    |     return debug.technical_500_response(request, *exc_info)
 django_1    |   File "/usr/local/lib/python3.7/site-
 packages/django_extensions/management/technical_response.py", line 31, in
 null_technical_500_response
 django_1    |     elif tld.wsgi_tb:
 django_1    | AttributeError: '_thread._local' object has no attribute
 'wsgi_tb'

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29803>
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/054.a73a0a22df40156c3d1725110bbdbd53%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to