"503 Context deadline exceeded" error isn't handled correctly.
** 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.
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.