Skip to content

使用报错 Traceback (most recent call last): File "/app/agent_fastapi.py", line 2820, in ws_chat await asyncio.wait_for(pump_task, timeout=2.0) File "/usr/local/lib/python3.11/asyncio/tasks.py", line 489, in wait_for return fut.result() #85

Description

@PingRui

File "/app/agent_fastapi.py", line 2820, in ws_chat

await asyncio.wait_for(pump_task, timeout=2.0)

File "/usr/local/lib/python3.11/asyncio/tasks.py", line 489, in wait_for

return fut.result()

       ^^^^^^^^^^^^

File "/app/agent_fastapi.py", line 2367, in pump_agent

async for mode, chunk in stream:

File "/usr/local/lib/python3.11/site-packages/langgraph/pregel/main.py", line 2997, in astream

async for _ in runner.atick(

File "/usr/local/lib/python3.11/site-packages/langgraph/pregel/_runner.py", line 377, in atick

done, inflight = await asyncio.wait(

                 ^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/asyncio/tasks.py", line 428, in wait

return await _wait(fs, timeout, return_when, loop)

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/asyncio/tasks.py", line 535, in _wait

await waiter

asyncio.exceptions.CancelledError

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions