Files
Mutual_Fund/logs/error.log
T
2026-09-11 19:09:45 +08:00

1443 lines
103 KiB
Plaintext

2026-09-11 15:07:01,773 ERROR [-] api: unhandled error on /api/knowledge/documents/preview
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 58, in preview_document_upload
form = await request.form()
^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\requests.py", line 276, in _get_form
assert parse_options_header is not None, (
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: The `python-multipart` library must be installed to use form parsing.
2026-09-11 15:07:37,652 ERROR [-] api: unhandled error on /api/knowledge/documents/preview
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 58, in preview_document_upload
form = await request.form()
^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\requests.py", line 276, in _get_form
assert parse_options_header is not None, (
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: The `python-multipart` library must be installed to use form parsing.
2026-09-11 15:08:14,610 ERROR [-] api: unhandled error on /api/knowledge/documents/preview
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 58, in preview_document_upload
form = await request.form()
^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\requests.py", line 276, in _get_form
assert parse_options_header is not None, (
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: The `python-multipart` library must be installed to use form parsing.
2026-09-11 15:09:22,372 ERROR [-] api: unhandled error on /api/knowledge/documents/preview
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 62, in preview_document_upload
result = await _service(request).preview(
^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 19, in _service
raise RuntimeError("knowledge upload service is not configured")
RuntimeError: knowledge upload service is not configured
2026-09-11 16:19:30,156 ERROR [-] api: unhandled error on /api/knowledge/documents/confirm
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 85, in confirm_document_upload
result = await _service(request).confirm(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\service\knowledge_base\upload.py", line 206, in confirm
exists = await exists
^^^^^^^^^^^^
File "D:\Mutual_Fund\service\customer_agent\bootstrap.py", line 34, in document_exists_in_milvus
rows = await milvus.query(
^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\milvus_client\async_milvus_client.py", line 642, in query
return await conn.query(
^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 489, in async_handler
raise e from e
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 486, in async_handler
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 556, in async_handler
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 370, in async_handler
raise e from e
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 332, in async_handler
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\client\async_grpc_handler.py", line 1467, in query
check_status(response.status)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\client\utils.py", line 77, in check_status
raise MilvusException.from_status(status)
pymilvus.exceptions.MilvusException: <MilvusException: (code=1100, message=failed to create query plan: cannot parse expression: doc_id == "公募基金操作知识": field doc_id not exist: invalid parameter: invalid parameter)>
2026-09-11 16:19:37,338 ERROR [-] api: unhandled error on /api/knowledge/documents/confirm
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 85, in confirm_document_upload
result = await _service(request).confirm(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\service\knowledge_base\upload.py", line 206, in confirm
exists = await exists
^^^^^^^^^^^^
File "D:\Mutual_Fund\service\customer_agent\bootstrap.py", line 34, in document_exists_in_milvus
rows = await milvus.query(
^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\milvus_client\async_milvus_client.py", line 642, in query
return await conn.query(
^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 489, in async_handler
raise e from e
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 486, in async_handler
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 556, in async_handler
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 370, in async_handler
raise e from e
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 332, in async_handler
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\client\async_grpc_handler.py", line 1467, in query
check_status(response.status)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\client\utils.py", line 77, in check_status
raise MilvusException.from_status(status)
pymilvus.exceptions.MilvusException: <MilvusException: (code=1100, message=failed to create query plan: cannot parse expression: doc_id == "公募基金操作知识": field doc_id not exist: invalid parameter: invalid parameter)>
2026-09-11 16:21:29,474 ERROR [a83edb036c014889] rag.embedding: embedding provider failed
Traceback (most recent call last):
File "D:\Mutual_Fund\rag\embedding.py", line 22, in embed_texts
vectors = await provider.embed(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\tool\llm.py", line 116, in embed
r.raise_for_status()
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\httpx\_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '502 Bad Gateway' for url 'http://localhost:11434/v1/embeddings'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502
2026-09-11 16:21:29,478 ERROR [-] api: unhandled error on /api/knowledge/documents/confirm
Traceback (most recent call last):
File "D:\Mutual_Fund\rag\embedding.py", line 22, in embed_texts
vectors = await provider.embed(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\tool\llm.py", line 116, in embed
r.raise_for_status()
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\httpx\_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '502 Bad Gateway' for url 'http://localhost:11434/v1/embeddings'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 85, in confirm_document_upload
result = await _service(request).confirm(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\service\knowledge_base\upload.py", line 224, in confirm
vectors = await self.embedder(
^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\rag\embedding.py", line 25, in embed_texts
raise EmbeddingError("Embedding service unavailable") from exc
rag.embedding.EmbeddingError: Embedding service unavailable
2026-09-11 16:23:56,878 ERROR [f6a273b78c7d4843] rag.embedding: embedding provider failed
Traceback (most recent call last):
File "D:\Mutual_Fund\rag\embedding.py", line 22, in embed_texts
vectors = await provider.embed(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\tool\llm.py", line 116, in embed
r.raise_for_status()
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\httpx\_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '502 Bad Gateway' for url 'http://localhost:11434/v1/embeddings'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502
2026-09-11 16:23:56,880 ERROR [-] api: unhandled error on /api/knowledge/documents/confirm
Traceback (most recent call last):
File "D:\Mutual_Fund\rag\embedding.py", line 22, in embed_texts
vectors = await provider.embed(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\tool\llm.py", line 116, in embed
r.raise_for_status()
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\httpx\_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '502 Bad Gateway' for url 'http://localhost:11434/v1/embeddings'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 85, in confirm_document_upload
result = await _service(request).confirm(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\service\knowledge_base\upload.py", line 224, in confirm
vectors = await self.embedder(
^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\rag\embedding.py", line 25, in embed_texts
raise EmbeddingError("Embedding service unavailable") from exc
rag.embedding.EmbeddingError: Embedding service unavailable
2026-09-11 16:24:47,041 ERROR [ed2fcc061b8b4461] rag.embedding: embedding provider failed
Traceback (most recent call last):
File "D:\Mutual_Fund\rag\embedding.py", line 22, in embed_texts
vectors = await provider.embed(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\tool\llm.py", line 116, in embed
r.raise_for_status()
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\httpx\_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '502 Bad Gateway' for url 'http://localhost:11434/v1/embeddings'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502
2026-09-11 16:24:47,044 ERROR [-] api: unhandled error on /api/knowledge/documents/confirm
Traceback (most recent call last):
File "D:\Mutual_Fund\rag\embedding.py", line 22, in embed_texts
vectors = await provider.embed(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\tool\llm.py", line 116, in embed
r.raise_for_status()
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\httpx\_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '502 Bad Gateway' for url 'http://localhost:11434/v1/embeddings'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 85, in confirm_document_upload
result = await _service(request).confirm(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\service\knowledge_base\upload.py", line 224, in confirm
vectors = await self.embedder(
^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\rag\embedding.py", line 25, in embed_texts
raise EmbeddingError("Embedding service unavailable") from exc
rag.embedding.EmbeddingError: Embedding service unavailable
2026-09-11 16:40:05,491 ERROR [ff041f4e56dd45c9] rag.embedding: embedding provider failed
Traceback (most recent call last):
File "D:\Mutual_Fund\rag\embedding.py", line 22, in embed_texts
vectors = await provider.embed(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\tool\llm.py", line 116, in embed
r.raise_for_status()
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\httpx\_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '502 Bad Gateway' for url 'http://localhost:11434/v1/embeddings'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502
2026-09-11 16:40:05,495 ERROR [-] api: unhandled error on /api/knowledge/documents/confirm
Traceback (most recent call last):
File "D:\Mutual_Fund\rag\embedding.py", line 22, in embed_texts
vectors = await provider.embed(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\tool\llm.py", line 116, in embed
r.raise_for_status()
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\httpx\_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '502 Bad Gateway' for url 'http://localhost:11434/v1/embeddings'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 85, in confirm_document_upload
result = await _service(request).confirm(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\service\knowledge_base\upload.py", line 224, in confirm
vectors = await self.embedder(
^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\rag\embedding.py", line 25, in embed_texts
raise EmbeddingError("Embedding service unavailable") from exc
rag.embedding.EmbeddingError: Embedding service unavailable
2026-09-11 16:41:22,853 ERROR [af03a1c5165340f1] rag.embedding: embedding provider failed
Traceback (most recent call last):
File "D:\Mutual_Fund\rag\embedding.py", line 22, in embed_texts
vectors = await provider.embed(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\tool\llm.py", line 116, in embed
r.raise_for_status()
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\httpx\_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '502 Bad Gateway' for url 'http://localhost:11434/v1/embeddings'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502
2026-09-11 16:41:22,856 ERROR [-] api: unhandled error on /api/knowledge/documents/confirm
Traceback (most recent call last):
File "D:\Mutual_Fund\rag\embedding.py", line 22, in embed_texts
vectors = await provider.embed(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\tool\llm.py", line 116, in embed
r.raise_for_status()
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\httpx\_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '502 Bad Gateway' for url 'http://localhost:11434/v1/embeddings'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 85, in confirm_document_upload
result = await _service(request).confirm(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\service\knowledge_base\upload.py", line 224, in confirm
vectors = await self.embedder(
^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\rag\embedding.py", line 25, in embed_texts
raise EmbeddingError("Embedding service unavailable") from exc
rag.embedding.EmbeddingError: Embedding service unavailable
2026-09-11 16:50:56,366 ERROR [f38eae609cb84f12] service.knowledge_base.upload: knowledge update event publish failed for doc_id=公募基金操作知识
Traceback (most recent call last):
File "D:\Mutual_Fund\service\knowledge_base\upload.py", line 284, in confirm
await publish_knowledge_update(
File "D:\Mutual_Fund\rag\events.py", line 19, in publish_knowledge_update
await publisher(KNOWLEDGE_UPDATE_EVENT, payload)
File "D:\Mutual_Fund\service\customer_agent\bootstrap.py", line 51, in publish_event
await redis.publish(
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\client.py", line 929, in execute_command
conn = self.connection or await pool.get_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\utils.py", line 249, in async_wrapper
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 2824, in get_connection
await self.ensure_connection(connection)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 2865, in ensure_connection
await connection.connect()
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 819, in connect
await self.retry.call_with_retry(
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 883, in connect_check_health
await self.on_connect_check_health(check_health=check_health)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 1003, in on_connect_check_health
response = await self.read_response()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 1328, in read_response
raise response from None
redis.exceptions.ResponseError: unknown command `HELLO`, with args beginning with: `3`,
2026-09-11 16:50:56,787 ERROR [-] api: unhandled error on /api/knowledge/documents/confirm
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 85, in confirm_document_upload
result = await _service(request).confirm(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\service\knowledge_base\upload.py", line 284, in confirm
await publish_knowledge_update(
File "D:\Mutual_Fund\rag\events.py", line 19, in publish_knowledge_update
await publisher(KNOWLEDGE_UPDATE_EVENT, payload)
File "D:\Mutual_Fund\service\customer_agent\bootstrap.py", line 51, in publish_event
await redis.publish(
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\client.py", line 929, in execute_command
conn = self.connection or await pool.get_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\utils.py", line 249, in async_wrapper
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 2824, in get_connection
await self.ensure_connection(connection)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 2865, in ensure_connection
await connection.connect()
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 819, in connect
await self.retry.call_with_retry(
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 883, in connect_check_health
await self.on_connect_check_health(check_health=check_health)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 1003, in on_connect_check_health
response = await self.read_response()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 1328, in read_response
raise response from None
redis.exceptions.ResponseError: unknown command `HELLO`, with args beginning with: `3`,
2026-09-11 16:51:18,924 ERROR [b3d3c87d09134d4b] service.knowledge_base.upload: knowledge update event publish failed for doc_id=公募基金操作知识
Traceback (most recent call last):
File "D:\Mutual_Fund\service\knowledge_base\upload.py", line 284, in confirm
await publish_knowledge_update(
File "D:\Mutual_Fund\rag\events.py", line 19, in publish_knowledge_update
await publisher(KNOWLEDGE_UPDATE_EVENT, payload)
File "D:\Mutual_Fund\service\customer_agent\bootstrap.py", line 51, in publish_event
await redis.publish(
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\client.py", line 929, in execute_command
conn = self.connection or await pool.get_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\utils.py", line 249, in async_wrapper
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 2824, in get_connection
await self.ensure_connection(connection)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 2865, in ensure_connection
await connection.connect()
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 819, in connect
await self.retry.call_with_retry(
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 883, in connect_check_health
await self.on_connect_check_health(check_health=check_health)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 1003, in on_connect_check_health
response = await self.read_response()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 1328, in read_response
raise response from None
redis.exceptions.ResponseError: unknown command `HELLO`, with args beginning with: `3`,
2026-09-11 16:51:19,384 ERROR [-] api: unhandled error on /api/knowledge/documents/confirm
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 85, in confirm_document_upload
result = await _service(request).confirm(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\service\knowledge_base\upload.py", line 284, in confirm
await publish_knowledge_update(
File "D:\Mutual_Fund\rag\events.py", line 19, in publish_knowledge_update
await publisher(KNOWLEDGE_UPDATE_EVENT, payload)
File "D:\Mutual_Fund\service\customer_agent\bootstrap.py", line 51, in publish_event
await redis.publish(
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\client.py", line 929, in execute_command
conn = self.connection or await pool.get_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\utils.py", line 249, in async_wrapper
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 2824, in get_connection
await self.ensure_connection(connection)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 2865, in ensure_connection
await connection.connect()
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 819, in connect
await self.retry.call_with_retry(
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 883, in connect_check_health
await self.on_connect_check_health(check_health=check_health)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 1003, in on_connect_check_health
response = await self.read_response()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 1328, in read_response
raise response from None
redis.exceptions.ResponseError: unknown command `HELLO`, with args beginning with: `3`,
2026-09-11 17:22:54,820 ERROR [-] api: unhandled error on /api/knowledge/documents
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 32, in list_documents
return success(await _service(request).list_documents())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\service\knowledge_base\upload.py", line 130, in list_documents
rows = await self.milvus_client.query(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\milvus_client\async_milvus_client.py", line 642, in query
return await conn.query(
^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 489, in async_handler
raise e from e
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 486, in async_handler
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 556, in async_handler
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 370, in async_handler
raise e from e
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 332, in async_handler
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\client\async_grpc_handler.py", line 1467, in query
check_status(response.status)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\client\utils.py", line 77, in check_status
raise MilvusException.from_status(status)
pymilvus.exceptions.MilvusException: <MilvusException: (code=1100, message=empty expression should be used with limit: invalid parameter)>
2026-09-11 17:25:39,869 ERROR [-] api: unhandled error on /api/knowledge/documents
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 32, in list_documents
return success(await _service(request).list_documents())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\service\knowledge_base\upload.py", line 130, in list_documents
rows = await self.milvus_client.query(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\milvus_client\async_milvus_client.py", line 642, in query
return await conn.query(
^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 489, in async_handler
raise e from e
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 486, in async_handler
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 556, in async_handler
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 370, in async_handler
raise e from e
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 332, in async_handler
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\client\async_grpc_handler.py", line 1467, in query
check_status(response.status)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\client\utils.py", line 77, in check_status
raise MilvusException.from_status(status)
pymilvus.exceptions.MilvusException: <MilvusException: (code=1100, message=empty expression should be used with limit: invalid parameter)>
2026-09-11 17:26:22,071 ERROR [-] api: unhandled error on /api/knowledge/documents
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\knowledge.py", line 32, in list_documents
return success(await _service(request).list_documents())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\service\knowledge_base\upload.py", line 130, in list_documents
rows = await self.milvus_client.query(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\milvus_client\async_milvus_client.py", line 642, in query
return await conn.query(
^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 489, in async_handler
raise e from e
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 486, in async_handler
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 556, in async_handler
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 370, in async_handler
raise e from e
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\decorators.py", line 332, in async_handler
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\client\async_grpc_handler.py", line 1467, in query
check_status(response.status)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\pymilvus\client\utils.py", line 77, in check_status
raise MilvusException.from_status(status)
pymilvus.exceptions.MilvusException: <MilvusException: (code=1100, message=invalid max query result window, (offset+limit) should be in range [1, 16384], but got 65536: invalid parameter: invalid parameter)>
2026-09-11 17:38:58,890 ERROR [-] api: unhandled error on /api/agent/customer/session/create
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\asyncio\windows_events.py", line 462, in finish_socket_func
return ov.getresult()
^^^^^^^^^^^^^^
OSError: [WinError 64] 指定的网络名不再可用。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 1286, in read_response
response = await self._read_response_from_parser(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 1338, in _read_response_from_parser
return await self._parser.read_response(disable_decoding=disable_decoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\_parsers\resp2.py", line 89, in read_response
response = await self._read_response(disable_decoding=disable_decoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\_parsers\resp2.py", line 97, in _read_response
raw = await self._readline()
^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\_parsers\base.py", line 587, in _readline
data = await self._stream.readline()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\asyncio\streams.py", line 568, in readline
line = await self.readuntil(sep)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\asyncio\streams.py", line 660, in readuntil
await self._wait_for_data('readuntil')
File "D:\Projects\py_environment\test_py3.12\Lib\asyncio\streams.py", line 545, in _wait_for_data
await self._waiter
File "D:\Projects\py_environment\test_py3.12\Lib\asyncio\proactor_events.py", line 286, in _loop_reading
length = fut.result()
^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\asyncio\windows_events.py", line 803, in _poll
value = callback(transferred, key, ov)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\asyncio\windows_events.py", line 466, in finish_socket_func
raise ConnectionResetError(*exc.args)
ConnectionResetError: [WinError 64] 指定的网络名不再可用。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\utils\request_id.py", line 28, in dispatch
response: Response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next
raise app_exc from app_exc.__cause__ or app_exc.__context__
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\base.py", line 144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\routing.py", line 670, in __call__
await self.middleware_stack(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2734, in app
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1791, in _handle_selected
await route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1780, in handle
await self.original_router.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 2789, in handle
await included_router._handle_selected(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1800, in _handle_selected
await original_route.handle(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 1279, in handle
await app(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 158, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 144, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 706, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\fastapi\routing.py", line 352, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\api\chat\customer_agent.py", line 28, in create_session
session_id = await runtime.session_service.create_session()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Mutual_Fund\agent\customer_agent\session.py", line 34, in create_session
await self.redis.rpush(f"session:{session_id}:messages", "")
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\client.py", line 946, in execute_command
result = await conn.retry.call_with_retry(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\client.py", line 871, in _send_command_parse_response
return await self.parse_response(conn, command_name, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\client.py", line 993, in parse_response
response = await connection.read_response()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\py_environment\test_py3.12\Lib\site-packages\redis\asyncio\connection.py", line 1314, in read_response
raise ConnectionError(f"Error while reading from {host_error} : {e.args}")
redis.exceptions.ConnectionError: Error while reading from localhost:6379 : (22, '指定的网络名不再可用。', None, 64, None)