Skip to content

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

@mstyer-google

Description

@mstyer-google

** 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.

Metadata

Metadata

Labels

core[Component] This issue is related to the core interface and implementation

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions