Symptom
The model's tool call is accepted, then the tool result is Error: unhandled errors in a TaskGroup (1 sub-exception). The report shows 'unhandled errors in a TaskGroup (1 sub-exception)'.
Evidence what you'll see
- The reported call is a
FunctionCallnamedget-orderswith arguments{"query":"name:100","first":1}. - A follow-up in the same thread says a call to
get-orderfor a specific order id returned a result. - The report says the same server succeeded from other clients.
Why it happens
That sentence is a wrapper around the real failure, so the server's message never reaches the agent. Pull request #6125 resolves the issue by dropping unset parameters from the MCP tool input and by formatting MCP errors. The report was filed against Python Extensions (autogen-ext).
Affected versions
The library version in the report is Python dev (main branch), package autogen-ext, on Windows. A later comment reports the same error text on version 0.6.4.
Fix steps
0 of 2 done
Your check marks stay in this browser only.
How to check it worked
- Send the same tool call again. The result should be the tool's data, or a formatted MCP error, not only
Error: unhandled errors in a TaskGroup (1 sub-exception).
If it still fails
- A later comment on version
0.6.4showsunhandled errors in a TaskGroup (1 sub-exception)again. The linked issue does not give a further command for that report.
Sources and credit
Summarized in our own words from these public reports. Credit goes to their authors.
Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change
Hit an error we don't cover? Submit it