fix:上传忽略logs
This commit is contained in:
@@ -31,6 +31,7 @@ ENV/
|
||||
|
||||
# 日志文件
|
||||
*.log
|
||||
logs/
|
||||
|
||||
# 操作系统文件
|
||||
.DS_Store
|
||||
|
||||
+115
@@ -1325,3 +1325,118 @@ Traceback (most recent call last):
|
||||
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)
|
||||
|
||||
+118
@@ -1337,3 +1337,121 @@ Traceback (most recent call last):
|
||||
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)
|
||||
2026-09-11 19:05:28,328 INFO [06a2204f886d4f00] httpx: HTTP Request: POST http://localhost:11434/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-09-11 19:06:29,071 INFO [02c18211e6df4923] httpx: HTTP Request: POST http://localhost:11434/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
2026-09-11 19:07:25,590 INFO [1ae065ab5c224a8e] httpx: HTTP Request: POST http://localhost:11434/v1/chat/completions "HTTP/1.1 200 OK"
|
||||
|
||||
Reference in New Issue
Block a user