Changes between Initial Version and Version 1 of Ticket #29803


Ignore:
Timestamp:
Sep 28, 2018, 1:40:01 PM (6 years ago)
Author:
Tim Graham
Comment:

The crash is in django_extensions/management/technical_response.py which is third party package.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29803

    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #29803 – Description

    initial v1  
    11Discovered 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.
    22Traceback:
    3 django_1    | Traceback (most recent call last):
    4 django_1    |   File "/usr/local/lib/python3.7/site-packages/django/contrib/staticfiles/handlers.py", line 65, in __call__
    5 django_1    |     return self.application(environ, start_response)
    6 django_1    |   File "/usr/local/lib/python3.7/site-packages/django/core/handlers/wsgi.py", line 142, in __call__
    7 django_1    |     response = self.get_response(request)
    8 django_1    |   File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 78, in get_response
    9 django_1    |     response = self._middleware_chain(request)
    10 django_1    |   File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 36, in inner
    11 django_1    |     response = response_for_exception(request, exc)
    12 django_1    |   File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
    13 django_1    |     response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
    14 django_1    |   File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 125, in handle_uncaught_exception
    15 django_1    |     return debug.technical_500_response(request, *exc_info)
    16 django_1    |   File "/usr/local/lib/python3.7/site-packages/django_extensions/management/technical_response.py", line 31, in null_technical_500_response
    17 django_1    |     elif tld.wsgi_tb:
    18 django_1    | AttributeError: '_thread._local' object has no attribute 'wsgi_tb'
     3{{{
     4Traceback (most recent call last):
     5  File "/usr/local/lib/python3.7/site-packages/django/contrib/staticfiles/handlers.py", line 65, in __call__
     6    return self.application(environ, start_response)
     7  File "/usr/local/lib/python3.7/site-packages/django/core/handlers/wsgi.py", line 142, in __call__
     8    response = self.get_response(request)
     9  File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 78, in get_response
     10    response = self._middleware_chain(request)
     11  File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 36, in inner
     12    response = response_for_exception(request, exc)
     13  File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
     14    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
     15  File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py", line 125, in handle_uncaught_exception
     16    return debug.technical_500_response(request, *exc_info)
     17  File "/usr/local/lib/python3.7/site-packages/django_extensions/management/technical_response.py", line 31, in null_technical_500_response
     18    elif tld.wsgi_tb:
     19AttributeError: '_thread._local' object has no attribute 'wsgi_tb'
     20}}}
Back to Top