-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
运行项目,输入问题后。
simpleoutline日志输出:
ERROR: Exception in ASGI application
+ Exception Group Traceback (most recent call last):
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
| result = await app( # type: ignore[func-returns-value]
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__
| return await self.app(scope, receive, send)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\starlette\applications.py", line 113, in __call__
| await self.middleware_stack(scope, receive, send)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\starlette\middleware\errors.py", line 186, in __call__
| raise exc
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
| await self.app(scope, receive, _send)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\starlette\middleware\cors.py", line 85, in __call__
| await self.app(scope, receive, send)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__
| await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
| raise exc
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
| await app(scope, receive, sender)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\starlette\routing.py", line 716, in __call__
| await self.middleware_stack(scope, receive, send)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\starlette\routing.py", line 736, in app
| await route.handle(scope, receive, send)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\starlette\routing.py", line 290, in handle
| await self.app(scope, receive, send)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\starlette\routing.py", line 78, in app
| await wrap_app_handling_exceptions(app, request)(scope, receive, send)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
| raise exc
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
| await app(scope, receive, sender)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\starlette\routing.py", line 76, in app
| await response(scope, receive, send)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\sse_starlette\sse.py", line 255, in __call__
| async with anyio.create_task_group() as task_group:
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\anyio\_backends\_asyncio.py", line 772, in __aexit__
| raise BaseExceptionGroup(
| exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
+-+---------------- 1 ----------------
| Traceback (most recent call last):
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\sse_starlette\sse.py", line 258, in cancel_on_finish
| await coro()
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\sse_starlette\sse.py", line 177, in _stream_response
| async for data in self.body_iterator:
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\a2a\server\apps\jsonrpc\jsonrpc_app.py", line 350, in event_generator
| async for item in stream:
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\a2a\server\request_handlers\jsonrpc_handler.py", line 121, in on_message_send_stream
| async for event in self.request_handler.on_message_send_stream(
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\a2a\server\request_handlers\default_request_handler.py", line 346, in on_message_send_stream
| await self._cleanup_producer(producer_task, task_id)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\a2a\utils\telemetry.py", line 161, in async_wrapper
| result = await func(*args, **kwargs)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\a2a\server\request_handlers\default_request_handler.py", line 361, in _cleanup_producer
| await producer_task
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\a2a\utils\telemetry.py", line 161, in async_wrapper
| result = await func(*args, **kwargs)
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\a2a\server\request_handlers\default_request_handler.py", line 169, in _run_event_stream
| await self.agent_executor.execute(request, queue)
| File "F:\PyProjects\TrainPPTAgent\backend\simpleOutline\adk_agent_executor.py", line 116, in execute
| await self._process_request(
| File "F:\PyProjects\TrainPPTAgent\backend\simpleOutline\adk_agent_executor.py", line 81, in _process_request
| async for event in self._run_agent(session_id, new_message):
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\google\adk\runners.py", line 203, in run_async
| async for event in invocation_context.agent.run_async(invocation_context):
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\google\adk\agents\base_agent.py", line 147, in run_async
| async for event in self._run_async_impl(ctx):
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\google\adk\agents\llm_agent.py", line 275, in _run_async_impl
| async for event in self._llm_flow.run_async(ctx):
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\google\adk\flows\llm_flows\base_llm_flow.py", line 282, in run_async
| async for event in self._run_one_step_async(invocation_context):
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\google\adk\flows\llm_flows\base_llm_flow.py", line 318, in _run_one_step_async
| async for event in self._postprocess_async(
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\google\adk\flows\llm_flows\base_llm_flow.py", line 390, in _postprocess_async
| async for event in self._postprocess_handle_function_calls_async(
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\google\adk\flows\llm_flows\base_llm_flow.py", line 465, in _postprocess_handle_function_calls_async
| if function_response_event := await functions.handle_function_calls_async(
| File "E:\anaconda3\envs\pptAgent\lib\site-packages\google\adk\flows\llm_flows\functions.py", line 173, in handle_function_calls_async
| altered_function_response = callback(
| File "F:\PyProjects\TrainPPTAgent\backend\simpleOutline\agent.py", line 52, in after_tool_callback
| print(f"������{tool_name}���ߺ��callback, tool_response����Ϊ��{tool_response}")
| UnicodeEncodeError: 'gbk' codec can't encode character '\u2665' in position 6581: illegal multibyte sequence
Metadata
Metadata
Assignees
Labels
No labels