You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
4.0 KiB
69 lines
4.0 KiB
D:\anaconda3\envs\rag\python.exe D:\dsWork\dsProject\dsRag\StartEs.py
|
|
INFO: Started server process [28828]
|
|
INFO: Waiting for application startup.
|
|
INFO: Application startup complete.
|
|
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
|
|
INFO: 10.10.21.22:50333 - "GET /static/ai.html HTTP/1.1" 304 Not Modified
|
|
INFO: 10.10.21.22:50333 - "POST /api/rag HTTP/1.1" 500 Internal Server Error
|
|
ERROR: Exception in ASGI application
|
|
Traceback (most recent call last):
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\fastapi\encoders.py", line 324, in jsonable_encoder
|
|
data = dict(obj)
|
|
TypeError: 'async_generator' object is not iterable
|
|
|
|
During handling of the above exception, another exception occurred:
|
|
|
|
Traceback (most recent call last):
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\fastapi\encoders.py", line 329, in jsonable_encoder
|
|
data = vars(obj)
|
|
TypeError: vars() argument must have __dict__ attribute
|
|
|
|
The above exception was the direct cause of the following exception:
|
|
|
|
Traceback (most recent call last):
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
|
|
result = await app( # type: ignore[func-returns-value]
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__
|
|
return await self.app(scope, receive, send)
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\fastapi\applications.py", line 1054, in __call__
|
|
await super().__call__(scope, receive, send)
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\starlette\applications.py", line 112, in __call__
|
|
await self.middleware_stack(scope, receive, send)
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__
|
|
raise exc
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__
|
|
await self.app(scope, receive, _send)
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
|
|
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
|
|
raise exc
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
|
|
await app(scope, receive, sender)
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\starlette\routing.py", line 714, in __call__
|
|
await self.middleware_stack(scope, receive, send)
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\starlette\routing.py", line 734, in app
|
|
await route.handle(scope, receive, send)
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\starlette\routing.py", line 288, in handle
|
|
await self.app(scope, receive, send)
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\starlette\routing.py", line 76, in app
|
|
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
|
|
raise exc
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
|
|
await app(scope, receive, sender)
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\starlette\routing.py", line 73, in app
|
|
response = await f(request)
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\fastapi\routing.py", line 327, in app
|
|
content = await serialize_response(
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\fastapi\routing.py", line 201, in serialize_response
|
|
return jsonable_encoder(response_content)
|
|
File "D:\anaconda3\envs\rag\lib\site-packages\fastapi\encoders.py", line 332, in jsonable_encoder
|
|
raise ValueError(errors) from e
|
|
ValueError: [TypeError("'async_generator' object is not iterable"), TypeError('vars() argument must have __dict__ attribute')]
|
|
INFO: Shutting down
|
|
INFO: Waiting for application shutdown.
|
|
INFO: Application shutdown complete.
|
|
INFO: Finished server process [28828]
|
|
|
|
进程已结束,退出代码为 0
|