--
Ticket URL: <https://code.djangoproject.com/ticket/29803>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
Old description:
New description:
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:
{{{
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-
packages/django/contrib/staticfiles/handlers.py", line 65, in __call__
return self.application(environ, start_response)
File "/usr/local/lib/python3.7/site-
packages/django/core/handlers/wsgi.py", line 142, in __call__
response = self.get_response(request)
File "/usr/local/lib/python3.7/site-
packages/django/core/handlers/base.py", line 78, in get_response
response = self._middleware_chain(request)
File "/usr/local/lib/python3.7/site-
packages/django/core/handlers/exception.py", line 36, in inner
response = response_for_exception(request, exc)
File "/usr/local/lib/python3.7/site-
packages/django/core/handlers/exception.py", line 90, in
response_for_exception
response = handle_uncaught_exception(request,
get_resolver(get_urlconf()), sys.exc_info())
File "/usr/local/lib/python3.7/site-
packages/django/core/handlers/exception.py", line 125, in
handle_uncaught_exception
return debug.technical_500_response(request, *exc_info)
File "/usr/local/lib/python3.7/site-
packages/django_extensions/management/technical_response.py", line 31, in
null_technical_500_response
elif tld.wsgi_tb:
AttributeError: '_thread._local' object has no attribute 'wsgi_tb'
}}}
--
Comment:
The crash is in `django_extensions/management/technical_response.py` which
is third party package.
--
Ticket URL: <https://code.djangoproject.com/ticket/29803#comment:1>