adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

"503 Context deadline exceeded" error isn't handled correctly.

Open mstyer-google opened this issue 1 year ago • 0 comments

** Please make sure you read the contribution guide and file the issues in the right place. ** Contribution guide.

Describe the bug When the Google API Core service raises a "503 Context deadline is exceeded" error, ADK crashes, rather than handling the error and retrying. The agent stopped executing and the adk web interface didn't show any messages or output.

I'll attach a log file showing the sequence of requests that led to this error.

adk_web_log_error.txt

To Reproduce Difficult to reproduce on demand.

Expected behavior At a minimum, the ADK web interface should surface the error and allow the user to retry the query. Better would be to have the agent recognize the error and recover automatically.

Desktop (please complete the following information):

  • OS: Debian Linux
  • Python version(python -V): 3.12.2
  • ADK version(pip show google-adk): 1.7.0

Model Information: Gemini 2.5 Flash

Additional context Add any other context about the problem here.

mstyer-google avatar Aug 29 '25 14:08 mstyer-google