Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys.stderr trunc traceback #754

Closed
zN3utr4l opened this issue Nov 29, 2022 · 5 comments
Closed

sys.stderr trunc traceback #754

zN3utr4l opened this issue Nov 29, 2022 · 5 comments
Labels
question Further information is requested

Comments

@zN3utr4l
Copy link

Django: 3.2.16
Loguru: latest

Loguru config:

'handlers': [
        {
            'sink': sys.stderr,
            'catch': True,
            'backtrace': True,
            'diagnose': True,
            'level': 'DEBUG',
            # 'enqueue':True
        },
        {
            'sink': /test/log-{time:YYYY-MM-DD}.log,
            'rotation': timedelta(days=1),
            'compression': 'zip',
            'retention': timedelta(days=7),
            'encoding': 'utf-8',
            'catch': True,
            'backtrace': True,
            'diagnose': True,
            'level': 'INFO',
            # 'enqueue':True
        },
    ]}

All logs are trimmed to this line

    response = response or

but on the log file everything is written perfectly

message in console:

2022-11-29 16:02:50.071 | ERROR    | api.controllers.test.views:get:74 - 1
Traceback (most recent call last):

  File "c:\Users\g.chirico\.vscode\extensions\ms-python.python-2022.18.2\pythonFiles\lib\python\debugpy\_vendored\pydevd\_pydev_bundle\pydev_monkey.py", line 1053, in __call__
    ret = self.original_func(*self.args, **self.kwargs)
          │    │              │    │       │    └ {}
          │    │              │    │       └ <_pydev_bundle.pydev_monkey._NewThreadStartupWithTrace object at 0x00000174A219DA30>
          │    │              │    └ ()
          │    │              └ <_pydev_bundle.pydev_monkey._NewThreadStartupWithTrace object at 0x00000174A219DA30>
          │    └ <bound method Thread._bootstrap of <Thread(Thread-8, started daemon 4168)>>
          └ <_pydev_bundle.pydev_monkey._NewThreadStartupWithTrace object at 0x00000174A219DA30>

  File "D:\Users\g.chirico\miniconda3\envs\production\lib\threading.py", line 890, in _bootstrap
    self._bootstrap_inner()
    │    └ <function Thread._bootstrap_inner at 0x00000174897DF0D0>
    └ <Thread(Thread-8, started daemon 4168)>

  File "D:\Users\g.chirico\miniconda3\envs\production\lib\threading.py", line 932, in _bootstrap_inner
    self.run()
    │    └ <function Thread.run at 0x00000174897DEDC0>
    └ <Thread(Thread-8, started daemon 4168)>

  File "D:\Users\g.chirico\miniconda3\envs\production\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
    │    │        │    │        │    └ {}
    │    │        │    │        └ <Thread(Thread-8, started daemon 4168)>
    │    │        │    └ (<socket.socket fd=7244, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 7000), raddr...
    │    │        └ <Thread(Thread-8, started daemon 4168)>
    │    └ <bound method ThreadingMixIn.process_request_thread of <django.core.servers.basehttp.WSGIServer object at 0x00000174A1AC55E0>>
    └ <Thread(Thread-8, started daemon 4168)>

  File "D:\Users\g.chirico\miniconda3\envs\production\lib\socketserver.py", line 683, in process_request_thread
    self.finish_request(request, client_address)
    │    │              │        └ ('127.0.0.1', 57524)
    │    │              └ <socket.socket fd=7244, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 7000), raddr=...
    │    └ <function BaseServer.finish_request at 0x000001748B52E790>
    └ <django.core.servers.basehttp.WSGIServer object at 0x00000174A1AC55E0>

  File "D:\Users\g.chirico\miniconda3\envs\production\lib\socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
    │    │                   │        │               └ <django.core.servers.basehttp.WSGIServer object at 0x00000174A1AC55E0>
    │    │                   │        └ ('127.0.0.1', 57524)
    │    │                   └ <socket.socket fd=7244, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 7000), raddr=...
    │    └ <class 'django.core.servers.basehttp.WSGIRequestHandler'>
    └ <django.core.servers.basehttp.WSGIServer object at 0x00000174A1AC55E0>

  File "D:\Users\g.chirico\miniconda3\envs\production\lib\socketserver.py", line 747, in __init__
    self.handle()
    │    └ <function WSGIRequestHandler.handle at 0x000001748D6A2AF0>
    └ <django.core.servers.basehttp.WSGIRequestHandler object at 0x00000174A219D790>

  File "D:\Users\g.chirico\miniconda3\envs\production\lib\site-packages\django\core\servers\basehttp.py", line 178, in handle
    self.handle_one_request()
    │    └ <function WSGIRequestHandler.handle_one_request at 0x000001748D6A2B80>
    └ <django.core.servers.basehttp.WSGIRequestHandler object at 0x00000174A219D790>

  File "D:\Users\g.chirico\miniconda3\envs\production\lib\site-packages\django\core\servers\basehttp.py", line 201, in handle_one_request
    handler.run(self.server.get_app())
    │       │   │    │      └ <function WSGIServer.get_app at 0x000001748CE294C0>
    │       │   │    └ <django.core.servers.basehttp.WSGIServer object at 0x00000174A1AC55E0>
    │       │   └ <django.core.servers.basehttp.WSGIRequestHandler object at 0x00000174A219D790>
    │       └ <function BaseHandler.run at 0x000001748CE28160>
    └ <django.core.servers.basehttp.ServerHandler object at 0x00000174A2F862E0>

  File "D:\Users\g.chirico\miniconda3\envs\production\lib\wsgiref\handlers.py", line 137, in run
    self.result = application(self.environ, self.start_response)
    │    │        │           │    │        │    └ <function BaseHandler.start_response at 0x000001748CE284C0>
    │    │        │           │    │        └ <django.core.servers.basehttp.ServerHandler object at 0x00000174A2F862E0>
    │    │        │           │    └ {'ALLUSERSPROFILE': 'C:\\ProgramData', 'APPDATA': 'C:\\Users\\g.chirico\\AppData\\Roaming', 'CHROME_CRASHPAD_PIPE_NAME': '\\\...
    │    │        │           └ <django.core.servers.basehttp.ServerHandler object at 0x00000174A2F862E0>
    │    │        └ <django.core.handlers.wsgi.WSGIHandler object at 0x00000174904C7640>
    │    └ None
    └ <django.core.servers.basehttp.ServerHandler object at 0x00000174A2F862E0>

  File "D:\Users\g.chirico\miniconda3\envs\production\lib\site-packages\django\core\handlers\wsgi.py", line 133, in __call__
    response = self.get_response(request)
               │    │            └ <WSGIRequest: GET '/api/test/report/'>
               │    └ <function BaseHandler.get_response at 0x000001748D6A13A0>
    response = response or self.get_response(request)
               │           │    │            └ <WSGIRequest: GET '/api/test/report/'>
               │           │    └ <function convert_exception_to_response.<locals>.inner at 0x00000174904CA1F0>
               │           └ <django.middleware.gzip.GZipMiddleware object at 0x00000174A1E25C40>
               └ None

  File "D:\Users\g.chirico\miniconda3\envs\production\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
    response = get_response(request)
               │            └ <WSGIRequest: GET '/api/test/report/'>
               └ <django.middleware.security.SecurityMiddleware object at 0x00000174904C7190>

  File "D:\Users\g.chirico\miniconda3\envs\production\lib\site-packages\django\utils\deprecation.py", line 117, in __call__
    response = response or self.get_response(request)
               │           │    │            └ <WSGIRequest: GET '/api/test/report/'>
               │           │    └ <function convert_exception_to_response.<locals>.inner at 0x00000174904CA550>
               │           └ <django.middleware.security.SecurityMiddleware object at 0x00000174904C7190>
               └ None

  File "D:\Users\g.chirico\miniconda3\envs\production\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
    response = get_response(request)
               │            └ <WSGIRequest: GET '/api/test/report/'>
               └ <django.contrib.sessions.middleware.SessionMiddleware object at 0x00000174904C71C0>

  File "D:\Users\g.chirico\miniconda3\envs\production\lib\site-packages\django\utils\deprecation.py", line 117, in __call__
    response = response or
def write(self, message):
        self._stream.write(message)
        if self._flushable:
            self._stream.flush()

formatted message from previus func:
'\x1b[32m2022-11-29 16:02:50.071\x1b[0m | \x1b[31m\x1b[1mERROR \x1b[0m | \x1b[36mapi.controllers.test.views\x1b[0m:\x1b[36mget\x1b[0m:\x1b[36m74\x1b[0m - \x1b[31m\x1b[1m1\x1b[0m\n\x1b[33m\x1b[1mTraceback (most recent call last):\x1b[0m\n\n File "\x1b[32mc:\\Users\\g.chirico\\.vscode\\extensions\\ms-python.python-2022.18.2\\pythonFiles\\lib\\python\\debugpy\\_vendored\\pydevd\\_pydev_bundle\\\x1b[0m\x1b[32m\x1b[1mpydev_monkey.py\x1b[0m", line \x1b[33m1053\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mret\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1moriginal_func\x1b[0m\x1b[1m(\x1b[0m\x1b[35m\x1b[1m*\x1b[0m\x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1margs\x1b[0m\x1b[1m,\x1b[0m \x1b[35m\x1b[1m**\x1b[0m\x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mkwargs\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ │ │ └ \x1b[0m\x1b[36m\x1b[1m{}\x1b[0m\n \x1b[36m │ │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<_pydev_bundle.pydev_monkey._NewThreadStartupWithTrace object at 0x00000174A219DA30>\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m()\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<_pydev_bundle.pydev_monkey._NewThreadStartupWithTrace object at 0x00000174A219DA30>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<bound method Thread._bootstrap of <Thread(Thread-8, started daemon 4168)>>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<_pydev_bundle.pydev_monkey._NewThreadStartupWithTrace object at 0x00000174A219DA30>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\\x1b[0m\x1b[32m\x1b[1mthreading.py\x1b[0m", line \x1b[33m890\x1b[0m, in \x1b[35m_bootstrap\x1b[0m\n \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1m_bootstrap_inner\x1b[0m\x1b[1m(\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m│ └ \x1b[0m\x1b[36m\x1b[1m<function Thread._bootstrap_inner at 0x00000174897DF0D0>\x1b[0m\n \x1b[36m└ \x1b[0m\x1b[36m\x1b[1m<Thread(Thread-8, started daemon 4168)>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\\x1b[0m\x1b[32m\x1b[1mthreading.py\x1b[0m", line \x1b[33m932\x1b[0m, in \x1b[35m_bootstrap_inner\x1b[0m\n \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mrun\x1b[0m\x1b[1m(\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m│ └ \x1b[0m\x1b[36m\x1b[1m<function Thread.run at 0x00000174897DEDC0>\x1b[0m\n \x1b[36m└ \x1b[0m\x1b[36m\x1b[1m<Thread(Thread-8, started daemon 4168)>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\\x1b[0m\x1b[32m\x1b[1mthreading.py\x1b[0m", line \x1b[33m870\x1b[0m, in \x1b[35mrun\x1b[0m\n \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1m_target\x1b[0m\x1b[1m(\x1b[0m\x1b[35m\x1b[1m*\x1b[0m\x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1m_args\x1b[0m\x1b[1m,\x1b[0m \x1b[35m\x1b[1m**\x1b[0m\x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1m_kwargs\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m│ │ │ │ │ └ \x1b[0m\x1b[36m\x1b[1m{}\x1b[0m\n \x1b[36m│ │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<Thread(Thread-8, started daemon 4168)>\x1b[0m\n \x1b[36m│ │ │ └ \x1b[0m\x1b[36m\x1b[1m(<socket.socket fd=7244, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=(\'127.0.0.1\', 7000), raddr...\x1b[0m\n \x1b[36m│ │ └ \x1b[0m\x1b[36m\x1b[1m<Thread(Thread-8, started daemon 4168)>\x1b[0m\n \x1b[36m│ └ \x1b[0m\x1b[36m\x1b[1m<bound method ThreadingMixIn.process_request_thread of <django.core.servers.basehttp.WSGIServer object at 0x00000174A1AC55E0>>\x1b[0m\n \x1b[36m└ \x1b[0m\x1b[36m\x1b[1m<Thread(Thread-8, started daemon 4168)>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\\x1b[0m\x1b[32m\x1b[1msocketserver.py\x1b[0m", line \x1b[33m683\x1b[0m, in \x1b[35mprocess_request_thread\x1b[0m\n \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mfinish_request\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m,\x1b[0m \x1b[1mclient_address\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m│ │ │ └ \x1b[0m\x1b[36m\x1b[1m(\'127.0.0.1\', 57524)\x1b[0m\n \x1b[36m│ │ └ \x1b[0m\x1b[36m\x1b[1m<socket.socket fd=7244, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=(\'127.0.0.1\', 7000), raddr=...\x1b[0m\n \x1b[36m│ └ \x1b[0m\x1b[36m\x1b[1m<function BaseServer.finish_request at 0x000001748B52E790>\x1b[0m\n \x1b[36m└ \x1b[0m\x1b[36m\x1b[1m<django.core.servers.basehttp.WSGIServer object at 0x00000174A1AC55E0>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\\x1b[0m\x1b[32m\x1b[1msocketserver.py\x1b[0m", line \x1b[33m360\x1b[0m, in \x1b[35mfinish_request\x1b[0m\n \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mRequestHandlerClass\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m,\x1b[0m \x1b[1mclient_address\x1b[0m\x1b[1m,\x1b[0m \x1b[1mself\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m│ │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<django.core.servers.basehttp.WSGIServer object at 0x00000174A1AC55E0>\x1b[0m\n \x1b[36m│ │ │ └ \x1b[0m\x1b[36m\x1b[1m(\'127.0.0.1\', 57524)\x1b[0m\n \x1b[36m│ │ └ \x1b[0m\x1b[36m\x1b[1m<socket.socket fd=7244, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=(\'127.0.0.1\', 7000), raddr=...\x1b[0m\n \x1b[36m│ └ \x1b[0m\x1b[36m\x1b[1m<class \'django.core.servers.basehttp.WSGIRequestHandler\'>\x1b[0m\n \x1b[36m└ \x1b[0m\x1b[36m\x1b[1m<django.core.servers.basehttp.WSGIServer object at 0x00000174A1AC55E0>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\\x1b[0m\x1b[32m\x1b[1msocketserver.py\x1b[0m", line \x1b[33m747\x1b[0m, in \x1b[35m__init__\x1b[0m\n \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mhandle\x1b[0m\x1b[1m(\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m│ └ \x1b[0m\x1b[36m\x1b[1m<function WSGIRequestHandler.handle at 0x000001748D6A2AF0>\x1b[0m\n \x1b[36m└ \x1b[0m\x1b[36m\x1b[1m<django.core.servers.basehttp.WSGIRequestHandler object at 0x00000174A219D790>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\servers\\\x1b[0m\x1b[32m\x1b[1mbasehttp.py\x1b[0m", line \x1b[33m178\x1b[0m, in \x1b[35mhandle\x1b[0m\n \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mhandle_one_request\x1b[0m\x1b[1m(\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m│ └ \x1b[0m\x1b[36m\x1b[1m<function WSGIRequestHandler.handle_one_request at 0x000001748D6A2B80>\x1b[0m\n \x1b[36m└ \x1b[0m\x1b[36m\x1b[1m<django.core.servers.basehttp.WSGIRequestHandler object at 0x00000174A219D790>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\servers\\\x1b[0m\x1b[32m\x1b[1mbasehttp.py\x1b[0m", line \x1b[33m201\x1b[0m, in \x1b[35mhandle_one_request\x1b[0m\n \x1b[1mhandler\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mrun\x1b[0m\x1b[1m(\x1b[0m\x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mserver\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_app\x1b[0m\x1b[1m(\x1b[0m\x1b[1m)\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m│ │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<function WSGIServer.get_app at 0x000001748CE294C0>\x1b[0m\n \x1b[36m│ │ │ └ \x1b[0m\x1b[36m\x1b[1m<django.core.servers.basehttp.WSGIServer object at 0x00000174A1AC55E0>\x1b[0m\n \x1b[36m│ │ └ \x1b[0m\x1b[36m\x1b[1m<django.core.servers.basehttp.WSGIRequestHandler object at 0x00000174A219D790>\x1b[0m\n \x1b[36m│ └ \x1b[0m\x1b[36m\x1b[1m<function BaseHandler.run at 0x000001748CE28160>\x1b[0m\n \x1b[36m└ \x1b[0m\x1b[36m\x1b[1m<django.core.servers.basehttp.ServerHandler object at 0x00000174A2F862E0>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\wsgiref\\\x1b[0m\x1b[32m\x1b[1mhandlers.py\x1b[0m", line \x1b[33m137\x1b[0m, in \x1b[35mrun\x1b[0m\n \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mresult\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mapplication\x1b[0m\x1b[1m(\x1b[0m\x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1menviron\x1b[0m\x1b[1m,\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mstart_response\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m│ │ │ │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<function BaseHandler.start_response at 0x000001748CE284C0>\x1b[0m\n \x1b[36m│ │ │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<django.core.servers.basehttp.ServerHandler object at 0x00000174A2F862E0>\x1b[0m\n \x1b[36m│ │ │ │ └ \x1b[0m\x1b[36m\x1b[1m{\'ALLUSERSPROFILE\': \'C:\\\\ProgramData\', \'APPDATA\': \'C:\\\\Users\\\\g.chirico\\\\AppData\\\\Roaming\', \'CHROME_CRASHPAD_PIPE_NAME\': \'\\\\\\...\x1b[0m\n \x1b[36m│ │ │ └ \x1b[0m\x1b[36m\x1b[1m<django.core.servers.basehttp.ServerHandler object at 0x00000174A2F862E0>\x1b[0m\n \x1b[36m│ │ └ \x1b[0m\x1b[36m\x1b[1m<django.core.handlers.wsgi.WSGIHandler object at 0x00000174904C7640>\x1b[0m\n \x1b[36m│ └ \x1b[0m\x1b[36m\x1b[1mNone\x1b[0m\n \x1b[36m└ \x1b[0m\x1b[36m\x1b[1m<django.core.servers.basehttp.ServerHandler object at 0x00000174A2F862E0>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mwsgi.py\x1b[0m", line \x1b[33m133\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<function BaseHandler.get_response at 0x000001748D6A13A0>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<django.core.handlers.wsgi.WSGIHandler object at 0x00000174904C7640>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mbase.py\x1b[0m", line \x1b[33m130\x1b[0m, in \x1b[35mget_response\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1m_middleware_chain\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<function convert_exception_to_response.<locals>.inner at 0x00000174A21A3940>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<django.core.handlers.wsgi.WSGIHandler object at 0x00000174904C7640>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mexception.py\x1b[0m", line \x1b[33m47\x1b[0m, in \x1b[35minner\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<django.middleware.cache.UpdateCacheMiddleware object at 0x00000174A1D48E20>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\utils\\\x1b[0m\x1b[32m\x1b[1mdeprecation.py\x1b[0m", line \x1b[33m117\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1mor\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<function convert_exception_to_response.<locals>.inner at 0x00000174A21A38B0>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<django.middleware.cache.UpdateCacheMiddleware object at 0x00000174A1D48E20>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1mNone\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mexception.py\x1b[0m", line \x1b[33m47\x1b[0m, in \x1b[35minner\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<main.middleware.CustomVariableLabel object at 0x00000174A1D66C40>\x1b[0m\n\n File "\x1b[32mD:\\Repository\\Analisys Detection\\Costal.DataAnalyser\\Analyser\\main\\\x1b[0m\x1b[32m\x1b[1mmiddleware.py\x1b[0m", line \x1b[33m20\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<function convert_exception_to_response.<locals>.inner at 0x00000174A1F0AC10>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<main.middleware.CustomVariableLabel object at 0x00000174A1D66C40>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mexception.py\x1b[0m", line \x1b[33m47\x1b[0m, in \x1b[35minner\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<django.middleware.gzip.GZipMiddleware object at 0x00000174A1E25C40>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\utils\\\x1b[0m\x1b[32m\x1b[1mdeprecation.py\x1b[0m", line \x1b[33m117\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1mor\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<function convert_exception_to_response.<locals>.inner at 0x00000174904CA1F0>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<django.middleware.gzip.GZipMiddleware object at 0x00000174A1E25C40>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1mNone\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mexception.py\x1b[0m", line \x1b[33m47\x1b[0m, in \x1b[35minner\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<django.middleware.security.SecurityMiddleware object at 0x00000174904C7190>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\utils\\\x1b[0m\x1b[32m\x1b[1mdeprecation.py\x1b[0m", line \x1b[33m117\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1mor\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<function convert_exception_to_response.<locals>.inner at 0x00000174904CA550>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<django.middleware.security.SecurityMiddleware object at 0x00000174904C7190>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1mNone\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mexception.py\x1b[0m", line \x1b[33m47\x1b[0m, in \x1b[35minner\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<django.contrib.sessions.middleware.SessionMiddleware object at 0x00000174904C71C0>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\utils\\\x1b[0m\x1b[32m\x1b[1mdeprecation.py\x1b[0m", line \x1b[33m117\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1mor\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<function convert_exception_to_response.<locals>.inner at 0x00000174904CA5E0>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<django.contrib.sessions.middleware.SessionMiddleware object at 0x00000174904C71C0>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1mNone\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mexception.py\x1b[0m", line \x1b[33m47\x1b[0m, in \x1b[35minner\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<corsheaders.middleware.CorsMiddleware object at 0x00000174904C7A00>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\utils\\\x1b[0m\x1b[32m\x1b[1mdeprecation.py\x1b[0m", line \x1b[33m117\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1mor\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<function convert_exception_to_response.<locals>.inner at 0x00000174904CA670>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<corsheaders.middleware.CorsMiddleware object at 0x00000174904C7A00>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1mNone\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mexception.py\x1b[0m", line \x1b[33m47\x1b[0m, in \x1b[35minner\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<django.middleware.common.CommonMiddleware object at 0x00000174904C7A90>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\utils\\\x1b[0m\x1b[32m\x1b[1mdeprecation.py\x1b[0m", line \x1b[33m117\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1mor\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<function convert_exception_to_response.<locals>.inner at 0x00000174904CA700>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<django.middleware.common.CommonMiddleware object at 0x00000174904C7A90>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1mNone\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mexception.py\x1b[0m", line \x1b[33m47\x1b[0m, in \x1b[35minner\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<django.middleware.csrf.CsrfViewMiddleware object at 0x00000174904C7AC0>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\utils\\\x1b[0m\x1b[32m\x1b[1mdeprecation.py\x1b[0m", line \x1b[33m117\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1mor\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<function convert_exception_to_response.<locals>.inner at 0x00000174904CA790>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<django.middleware.csrf.CsrfViewMiddleware object at 0x00000174904C7AC0>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1mNone\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mexception.py\x1b[0m", line \x1b[33m47\x1b[0m, in \x1b[35minner\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<django.contrib.auth.middleware.AuthenticationMiddleware object at 0x00000174904C7B80>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\utils\\\x1b[0m\x1b[32m\x1b[1mdeprecation.py\x1b[0m", line \x1b[33m117\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1mor\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<function convert_exception_to_response.<locals>.inner at 0x00000174904CA8B0>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<django.contrib.auth.middleware.AuthenticationMiddleware object at 0x00000174904C7B80>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1mNone\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mexception.py\x1b[0m", line \x1b[33m47\x1b[0m, in \x1b[35minner\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<django.contrib.messages.middleware.MessageMiddleware object at 0x00000174904C7E80>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\utils\\\x1b[0m\x1b[32m\x1b[1mdeprecation.py\x1b[0m", line \x1b[33m117\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1mor\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<function convert_exception_to_response.<locals>.inner at 0x00000174904CA9D0>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<django.contrib.messages.middleware.MessageMiddleware object at 0x00000174904C7E80>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1mNone\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mexception.py\x1b[0m", line \x1b[33m47\x1b[0m, in \x1b[35minner\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<django.middleware.clickjacking.XFrameOptionsMiddleware object at 0x00000174904C7EB0>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\utils\\\x1b[0m\x1b[32m\x1b[1mdeprecation.py\x1b[0m", line \x1b[33m117\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1mor\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<function convert_exception_to_response.<locals>.inner at 0x00000174904CAA60>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<django.middleware.clickjacking.XFrameOptionsMiddleware object at 0x00000174904C7EB0>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1mNone\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mexception.py\x1b[0m", line \x1b[33m47\x1b[0m, in \x1b[35minner\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<django_currentuser.middleware.ThreadLocalUserMiddleware object at 0x00000174904C7940>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django_currentuser\\\x1b[0m\x1b[32m\x1b[1mmiddleware.py\x1b[0m", line \x1b[33m34\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<function convert_exception_to_response.<locals>.inner at 0x00000174904CAAF0>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<django_currentuser.middleware.ThreadLocalUserMiddleware object at 0x00000174904C7940>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mexception.py\x1b[0m", line \x1b[33m47\x1b[0m, in \x1b[35minner\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<django.middleware.cache.FetchFromCacheMiddleware object at 0x00000174904C7FA0>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\utils\\\x1b[0m\x1b[32m\x1b[1mdeprecation.py\x1b[0m", line \x1b[33m117\x1b[0m, in \x1b[35m__call__\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1mor\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<function BaseHandler._get_response at 0x00000174904CA3A0>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<django.middleware.cache.FetchFromCacheMiddleware object at 0x00000174904C7FA0>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1mNone\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mexception.py\x1b[0m", line \x1b[33m47\x1b[0m, in \x1b[35minner\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mget_response\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x00000174904C7640>>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\core\\handlers\\\x1b[0m\x1b[32m\x1b[1mbase.py\x1b[0m", line \x1b[33m181\x1b[0m, in \x1b[35m_get_response\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mwrapped_callback\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m,\x1b[0m \x1b[35m\x1b[1m*\x1b[0m\x1b[1mcallback_args\x1b[0m\x1b[1m,\x1b[0m \x1b[35m\x1b[1m**\x1b[0m\x1b[1mcallback_kwargs\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m{}\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m()\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<function TestPdf at 0x00000174A1AC00D0>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\views\\decorators\\\x1b[0m\x1b[32m\x1b[1mcache.py\x1b[0m", line \x1b[33m44\x1b[0m, in \x1b[35m_wrapped_view_func\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mview_func\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m,\x1b[0m \x1b[35m\x1b[1m*\x1b[0m\x1b[1margs\x1b[0m\x1b[1m,\x1b[0m \x1b[35m\x1b[1m**\x1b[0m\x1b[1mkwargs\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m{}\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m()\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<function TestPdf at 0x00000174A1AC0040>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\views\\decorators\\\x1b[0m\x1b[32m\x1b[1mcsrf.py\x1b[0m", line \x1b[33m54\x1b[0m, in \x1b[35mwrapped_view\x1b[0m\n \x1b[35m\x1b[1mreturn\x1b[0m \x1b[1mview_func\x1b[0m\x1b[1m(\x1b[0m\x1b[35m\x1b[1m*\x1b[0m\x1b[1margs\x1b[0m\x1b[1m,\x1b[0m \x1b[35m\x1b[1m**\x1b[0m\x1b[1mkwargs\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m{}\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m(<WSGIRequest: GET \'/api/test/report/\'>,)\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<function TestPdf at 0x00000174A1ABAF70>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\django\\views\\generic\\\x1b[0m\x1b[32m\x1b[1mbase.py\x1b[0m", line \x1b[33m70\x1b[0m, in \x1b[35mview\x1b[0m\n \x1b[35m\x1b[1mreturn\x1b[0m \x1b[1mself\x1b[0m\x1b[35m\x1b[1m.\x1b[0m\x1b[1mdispatch\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m,\x1b[0m \x1b[35m\x1b[1m*\x1b[0m\x1b[1margs\x1b[0m\x1b[1m,\x1b[0m \x1b[35m\x1b[1m**\x1b[0m\x1b[1mkwargs\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ │ └ \x1b[0m\x1b[36m\x1b[1m{}\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m()\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m<WSGIRequest: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<function APIView.dispatch at 0x000001749E77E040>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<api.controllers.test.views.TestPdf object at 0x00000174A3AAB280>\x1b[0m\n\n File "\x1b[32mD:\\Users\\g.chirico\\miniconda3\\envs\\production\\lib\\site-packages\\rest_framework\\\x1b[0m\x1b[32m\x1b[1mviews.py\x1b[0m", line \x1b[33m506\x1b[0m, in \x1b[35mdispatch\x1b[0m\n \x1b[1mresponse\x1b[0m \x1b[35m\x1b[1m=\x1b[0m \x1b[1mhandler\x1b[0m\x1b[1m(\x1b[0m\x1b[1mrequest\x1b[0m\x1b[1m,\x1b[0m \x1b[35m\x1b[1m*\x1b[0m\x1b[1margs\x1b[0m\x1b[1m,\x1b[0m \x1b[35m\x1b[1m**\x1b[0m\x1b[1mkwargs\x1b[0m\x1b[1m)\x1b[0m\n \x1b[36m │ │ │ └ \x1b[0m\x1b[36m\x1b[1m{}\x1b[0m\n \x1b[36m │ │ └ \x1b[0m\x1b[36m\x1b[1m()\x1b[0m\n \x1b[36m │ └ \x1b[0m\x1b[36m\x1b[1m<rest_framework.request.Request: GET \'/api/test/report/\'>\x1b[0m\n \x1b[36m └ \x1b[0m\x1b[36m\x1b[1m<bound method TestPdf.get of <api.controllers.test.views.TestPdf object at 0x00000174A3AAB280>>\x1b[0m\n\n> File "\x1b[32mD:\\Repository\\Analisys Detection\\Costal.DataAnalyser\\Analyser\\api\\controllers\\test\\\x1b[0m\x1b[32m\x1b[1mviews.py\x1b[0m", line \x1b[33m72\x1b[0m, in \x1b[35mget\x1b[0m\n \x1b[35m\x1b[1mraise\x1b[0m \x1b[1mException\x1b[0m\x1b[1m(\x1b[0m\x1b[36m\'TestPdf\'\x1b[0m\x1b[1m)\x1b[0m\n\n\x1b[31m\x1b[1mException\x1b[0m:\x1b[1m TestPdf\x1b[0m\n'

@Delgan
Copy link
Owner

Delgan commented Nov 29, 2022

Sorry, I don't know what could cause it. It might be related to colorama. Can you try to provide a minimal reproducible example please?

@zN3utr4l
Copy link
Author

zN3utr4l commented Nov 30, 2022

As you can see, I forwarded the problem to colorama, as they recommended, if you do a flush before writing everything works.

Can you submit an update?

def write(self, message):
        if self._flushable:
            self._stream.flush()
        self._stream.write(message)
        if self._flushable:
            self._stream.flush()

@Delgan
Copy link
Owner

Delgan commented Dec 1, 2022

Hey @zN3utr4l, glad you figurd out something.

I think Loguru needs to flush() the output after writing to it, which it does:

def write(self, message):
self._stream.write(message)
if self._flushable:
self._stream.flush()

However, I don't think it needs to flush() it before, it's not an usual way to write to a stream. Something else must be going one. How to explain the difference between colorama v0.4.5 and v0.4.6?

@zN3utr4l
Copy link
Author

zN3utr4l commented Dec 1, 2022

I sent your comment to colorama

@Delgan Delgan added the question Further information is requested label Jan 6, 2023
@Delgan
Copy link
Owner

Delgan commented Jan 6, 2023

I'm closing the ticket as I don't think the problem comes from Loguru (as you observed it stopped working with colorama v0.4.6).

@Delgan Delgan closed this as completed Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants