Agent run_async hangs with "anyio.WouldBlock" and uncaught asyncio.CancelledError on unreachable MCP server URL #3797
praveeniitm
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I am using the Google ADK Python library to run an agent with an MCP toolset connected to an MCP server URL that is currently not reachable (set to an incorrect URL).
To Reproduce
Sample Code snippet
Error Log
Expected behavior
Would appreciate guidance on properly handling such connectivity failures in MCP tools to return meaningful errors.
Consider enhancing error propagation in run_async calls to allow catching connection errors gracefully.
Any configurations or best practices to detect and handle MCP server unreachability are welcome.
Beta Was this translation helpful? Give feedback.
All reactions