管理端删除任务
Orangeices opened this issue · 1 comments
管理端删除任务报错 AttributeError: 'State' object has no attribute 'logger'
backend-1 | result = await app( # type: ignore[func-returns-value]
backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1 | File "/app/pkgs/uvicorn/middleware/proxy_headers.py", line 78, in call
backend-1 | return await self.app(scope, receive, send)
backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1 | File "/app/pkgs/fastapi/applications.py", line 276, in call
backend-1 | await super().call(scope, receive, send)
backend-1 | File "/app/pkgs/starlette/applications.py", line 122, in call
backend-1 | await self.middleware_stack(scope, receive, send)
backend-1 | File "/app/pkgs/starlette/middleware/errors.py", line 184, in call
backend-1 | raise exc
backend-1 | File "/app/pkgs/starlette/middleware/errors.py", line 162, in call
backend-1 | await self.app(scope, receive, _send)
backend-1 | File "/app/pkgs/starlette/middleware/exceptions.py", line 79, in call
backend-1 | raise exc
backend-1 | File "/app/pkgs/starlette/middleware/exceptions.py", line 68, in call
backend-1 | await self.app(scope, receive, sender)
backend-1 | File "/app/pkgs/fastapi/middleware/asyncexitstack.py", line 21, in call
backend-1 | raise e
backend-1 | File "/app/pkgs/fastapi/middleware/asyncexitstack.py", line 18, in call
backend-1 | await self.app(scope, receive, send)
backend-1 | File "/app/pkgs/starlette/routing.py", line 718, in call
backend-1 | await route.handle(scope, receive, send)
backend-1 | File "/app/pkgs/starlette/routing.py", line 276, in handle
backend-1 | await self.app(scope, receive, send)
backend-1 | File "/app/pkgs/starlette/routing.py", line 66, in app
backend-1 | response = await func(request)
backend-1 | ^^^^^^^^^^^^^^^^^^^
backend-1 | File "/app/pkgs/fastapi/routing.py", line 227, in app
backend-1 | solved_result = await solve_dependencies(
backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1 | File "/app/pkgs/fastapi/dependencies/utils.py", line 622, in solve_dependencies
backend-1 | solved = await call(**sub_values)
backend-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
backend-1 | File "/app/app/api/deps.py", line 17, in get_logger
backend-1 | return request.state.logger
backend-1 | ^^^^^^^^^^^^^^^^^^^^
backend-1 | File "/app/pkgs/starlette/datastructures.py", line 705, in getattr
backend-1 | raise AttributeError(message.format(self.class.name, key))
backend-1 | AttributeError: 'State' object has no attribute 'logger'
同步一下main分支代码,然后重新构建一下 docker compose up --build