Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
16 kB
1
Indexable
Never
django-local-papupos    | Traceback (most recent call last):
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/handlers.py", line 65, in __call__
django-local-papupos    |     return self.application(environ, start_response)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 141, in __call__
django-local-papupos    |     response = self.get_response(request)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 75, in get_response
django-local-papupos    |     response = self._middleware_chain(request)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 36, in inner
django-local-papupos    |     response = response_for_exception(request, exc)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
django-local-papupos    |     response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 125, in handle_uncaught_exception
django-local-papupos    |     return debug.technical_500_response(request, *exc_info)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 40, in null_technical_500_response
django-local-papupos    |     raise exc_value.with_traceback(tb)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
django-local-papupos    |     response = get_response(request)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
django-local-papupos    |     response = self.process_exception_by_middleware(e, request)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 155, in process_exception_by_middleware
django-local-papupos    |     response = middleware_method(request, exception)
django-local-papupos    |   File "/app/common/exceptions.py", line 45, in process_exception
django-local-papupos    |     response = response_for_exception(request, exception)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
django-local-papupos    |     response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 125, in handle_uncaught_exception
django-local-papupos    |     return debug.technical_500_response(request, *exc_info)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 41, in null_technical_500_response
django-local-papupos    |     raise exc_value
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
django-local-papupos    |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
django-local-papupos    |   File "/usr/local/lib/python3.6/contextlib.py", line 52, in inner
django-local-papupos    |     return func(*args, **kwds)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
django-local-papupos    |     return view_func(*args, **kwargs)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/viewsets.py", line 125, in view
django-local-papupos    |     return self.dispatch(request, *args, **kwargs)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 509, in dispatch
django-local-papupos    |     response = self.handle_exception(exc)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 469, in handle_exception
django-local-papupos    |     self.raise_uncaught_exception(exc)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
django-local-papupos    |     raise exc
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 506, in dispatch
django-local-papupos    |     response = handler(request, *args, **kwargs)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py", line 54, in retrieve
django-local-papupos    |     instance = self.get_object()
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/generics.py", line 83, in get_object
django-local-papupos    |     queryset = self.filter_queryset(self.get_queryset())
django-local-papupos    |   File "/app/subscriptions/api/views.py", line 47, in get_queryset
django-local-papupos    |     return Company.objects.filter(id=self.request.user.localization.company_id)
django-local-papupos    | AttributeError: 'NoneType' object has no attribute 'company_id'
django-local-papupos    | 172.20.0.1 - - [25/Mar/2022 10:30:54] "GET /api/payments/purchased-plan/ HTTP/1.1" 500 -
django-local-papupos    |
django-local-papupos    | Traceback (most recent call last):
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/handlers.py", line 65, in __call__
django-local-papupos    |     return self.application(environ, start_response)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 141, in __call__
django-local-papupos    |     response = self.get_response(request)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 75, in get_response
django-local-papupos    |     response = self._middleware_chain(request)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 36, in inner
django-local-papupos    |     response = response_for_exception(request, exc)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
django-local-papupos    |     response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 125, in handle_uncaught_exception
django-local-papupos    |     return debug.technical_500_response(request, *exc_info)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 40, in null_technical_500_response
django-local-papupos    |     raise exc_value.with_traceback(tb)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
django-local-papupos    |     response = get_response(request)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
django-local-papupos    |     response = self.process_exception_by_middleware(e, request)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 155, in process_exception_by_middleware
django-local-papupos    |     response = middleware_method(request, exception)
django-local-papupos    |   File "/app/common/exceptions.py", line 45, in process_exception
django-local-papupos    |     response = response_for_exception(request, exception)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
django-local-papupos    |     response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 125, in handle_uncaught_exception
django-local-papupos    |     return debug.technical_500_response(request, *exc_info)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 41, in null_technical_500_response
django-local-papupos    |     raise exc_value
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
django-local-papupos    |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
django-local-papupos    |   File "/usr/local/lib/python3.6/contextlib.py", line 52, in inner
django-local-papupos    |     return func(*args, **kwds)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
django-local-papupos    |     return view_func(*args, **kwargs)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py", line 71, in view
django-local-papupos    |     return self.dispatch(request, *args, **kwargs)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 509, in dispatch
django-local-papupos    |     response = self.handle_exception(exc)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 469, in handle_exception
django-local-papupos    |     self.raise_uncaught_exception(exc)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
django-local-papupos    |     raise exc
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 506, in dispatch
django-local-papupos    |     response = handler(request, *args, **kwargs)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/generics.py", line 199, in get
django-local-papupos    |     return self.list(request, *args, **kwargs)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py", line 38, in list
django-local-papupos    |     queryset = self.filter_queryset(self.get_queryset())
django-local-papupos    |   File "/app/payments/api/views.py", line 31, in get_queryset
django-local-papupos    |     ).filter(localization__company_id=self.request.user.localization.company_id)
django-local-papupos    | AttributeError: 'NoneType' object has no attribute 'company_id'
django-local-papupos    | 172.20.0.1 - - [25/Mar/2022 10:30:54] "GET /api/subscriptions/subscription/ HTTP/1.1" 500 -
django-local-papupos    |
django-local-papupos    | Traceback (most recent call last):
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/handlers.py", line 65, in __call__
django-local-papupos    |     return self.application(environ, start_response)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 141, in __call__
django-local-papupos    |     response = self.get_response(request)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 75, in get_response
django-local-papupos    |     response = self._middleware_chain(request)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 36, in inner
django-local-papupos    |     response = response_for_exception(request, exc)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
django-local-papupos    |     response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 125, in handle_uncaught_exception
django-local-papupos    |     return debug.technical_500_response(request, *exc_info)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 40, in null_technical_500_response
django-local-papupos    |     raise exc_value.with_traceback(tb)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
django-local-papupos    |     response = get_response(request)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
django-local-papupos    |     response = self.process_exception_by_middleware(e, request)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 155, in process_exception_by_middleware
django-local-papupos    |     response = middleware_method(request, exception)
django-local-papupos    |   File "/app/common/exceptions.py", line 45, in process_exception
django-local-papupos    |     response = response_for_exception(request, exception)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
django-local-papupos    |     response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 125, in handle_uncaught_exception
django-local-papupos    |     return debug.technical_500_response(request, *exc_info)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django_extensions/management/technical_response.py", line 41, in null_technical_500_response
django-local-papupos    |     raise exc_value
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
django-local-papupos    |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
django-local-papupos    |   File "/usr/local/lib/python3.6/contextlib.py", line 52, in inner
django-local-papupos    |     return func(*args, **kwds)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
django-local-papupos    |     return view_func(*args, **kwargs)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/viewsets.py", line 125, in view
django-local-papupos    |     return self.dispatch(request, *args, **kwargs)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 509, in dispatch
django-local-papupos    |     response = self.handle_exception(exc)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 469, in handle_exception
django-local-papupos    |     self.raise_uncaught_exception(exc)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
django-local-papupos    |     raise exc
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 506, in dispatch
django-local-papupos    |     response = handler(request, *args, **kwargs)
django-local-papupos    |   File "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py", line 38, in list
django-local-papupos    |     queryset = self.filter_queryset(self.get_queryset())
django-local-papupos    |   File "/app/subscriptions/api/views.py", line 20, in get_queryset
django-local-papupos    |     return self.request.user.localization.company.subscriptions.order_by("-created")
django-local-papupos    | AttributeError: 'NoneType' object has no attribute 'company'