-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
拿到cookie之后,立即关闭无痕,使用cherry studio 或者kilo code,连接不同,查看日志会报错这个
root@ser004574533662:/home/apps-root/gemini-fastapi# docker logs --tail 100 gemini-fastapi-gemini-fastapi-1
│ │ │ └ <bound method LifespanOn.receive of <uvicorn.lifespan.on.LifespanOn object at 0x7ff3545d3bc0>>
│ │ └ {'type': 'lifespan', 'asgi': {'version': '3.0', 'spec_version': '2.0'}, 'state': {}, 'app': <fastapi.applications.FastAPI obj...
│ └ <fastapi.middleware.asyncexitstack.AsyncExitStackMiddleware object at 0x7ff3546aef00>
└ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7ff3546aeff0>
File "/app/.venv/lib/python3.12/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
│ │ │ │ └ <bound method LifespanOn.send of <uvicorn.lifespan.on.LifespanOn object at 0x7ff3545d3bc0>>
│ │ │ └ <bound method LifespanOn.receive of <uvicorn.lifespan.on.LifespanOn object at 0x7ff3545d3bc0>>
│ │ └ {'type': 'lifespan', 'asgi': {'version': '3.0', 'spec_version': '2.0'}, 'state': {}, 'app': <fastapi.applications.FastAPI obj...
│ └ <fastapi.routing.APIRouter object at 0x7ff3545d3c80>
└ <fastapi.middleware.asyncexitstack.AsyncExitStackMiddleware object at 0x7ff3546aef00>
File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 716, in __call__
await self.middleware_stack(scope, receive, send)
│ │ │ │ └ <bound method LifespanOn.send of <uvicorn.lifespan.on.LifespanOn object at 0x7ff3545d3bc0>>
│ │ │ └ <bound method LifespanOn.receive of <uvicorn.lifespan.on.LifespanOn object at 0x7ff3545d3bc0>>
│ │ └ {'type': 'lifespan', 'asgi': {'version': '3.0', 'spec_version': '2.0'}, 'state': {}, 'app': <fastapi.applications.FastAPI obj...
│ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x7ff3545d3c80>>
└ <fastapi.routing.APIRouter object at 0x7ff3545d3c80>
File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 725, in app
await self.lifespan(scope, receive, send)
│ │ │ │ └ <bound method LifespanOn.send of <uvicorn.lifespan.on.LifespanOn object at 0x7ff3545d3bc0>>
│ │ │ └ <bound method LifespanOn.receive of <uvicorn.lifespan.on.LifespanOn object at 0x7ff3545d3bc0>>
│ │ └ {'type': 'lifespan', 'asgi': {'version': '3.0', 'spec_version': '2.0'}, 'state': {}, 'app': <fastapi.applications.FastAPI obj...
│ └ <function Router.lifespan at 0x7ff354c36200>
└ <fastapi.routing.APIRouter object at 0x7ff3545d3c80>
File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 694, in lifespan
async with self.lifespan_context(app) as maybe_state:
│ │ └ <fastapi.applications.FastAPI object at 0x7ff355c6f050>
│ └ <function _merge_lifespan_context.<locals>.merged_lifespan at 0x7ff3545dee80>
└ <fastapi.routing.APIRouter object at 0x7ff3545d3c80>
File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
│ └ <async_generator object _merge_lifespan_context.<locals>.merged_lifespan at 0x7ff354627ab0>
└ <contextlib._AsyncGeneratorContextManager object at 0x7ff3546aee70>
File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 205, in merged_lifespan
async with original_context(app) as maybe_original_state:
│ └ <fastapi.applications.FastAPI object at 0x7ff355c6f050>
└ <function _merge_lifespan_context.<locals>.merged_lifespan at 0x7ff3545deac0>
File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
│ └ <async_generator object _merge_lifespan_context.<locals>.merged_lifespan at 0x7ff354627bc0>
└ <contextlib._AsyncGeneratorContextManager object at 0x7ff3546aeea0>
File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 205, in merged_lifespan
async with original_context(app) as maybe_original_state:
│ └ <fastapi.applications.FastAPI object at 0x7ff355c6f050>
└ <function _merge_lifespan_context.<locals>.merged_lifespan at 0x7ff3545de3e0>
File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
│ └ <async_generator object _merge_lifespan_context.<locals>.merged_lifespan at 0x7ff354627cd0>
└ <contextlib._AsyncGeneratorContextManager object at 0x7ff3546af020>
File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 205, in merged_lifespan
async with original_context(app) as maybe_original_state:
│ └ <fastapi.applications.FastAPI object at 0x7ff355c6f050>
└ <function lifespan at 0x7ff3545dd6c0>
File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
│ └ <async_generator object lifespan at 0x7ff354627de0>
└ <contextlib._AsyncGeneratorContextManager object at 0x7ff3546aef30>
> File "/app/app/main.py", line 57, in lifespan
await pool.init()
│ └ <function GeminiClientPool.init at 0x7ff3547ab2e0>
└ <app.services.pool.GeminiClientPool object at 0x7ff3546af080>
File "/app/app/services/pool.py", line 55, in init
raise RuntimeError("Failed to initialize any Gemini clients")
RuntimeError: Failed to initialize any Gemini clients
2026-01-13 18:39:00.093 | ERROR | uvicorn.lifespan.on:send:121 - Traceback (most recent call last):
File "/app/.venv/lib/python3.12/site-packages/starlette/routing.py", line 694, in lifespan
async with self.lifespan_context(app) as maybe_state:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 205, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 205, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 205, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/app/app/main.py", line 57, in lifespan
await pool.init()
File "/app/app/services/pool.py", line 55, in init
raise RuntimeError("Failed to initialize any Gemini clients")
RuntimeError: Failed to initialize any Gemini clients
2026-01-13 18:39:00.094 | ERROR | uvicorn.lifespan.on:startup:59 - Application startup failed. Exiting.
Metadata
Metadata
Assignees
Labels
No labels