Skip to content

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

Closed

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.

Activity

  1. added
    web[Component] This issue will be transferred to adk-web
    on Aug 29, 2025
  2. added theissue type on Aug 29, 2025
  3. added
    core[Component] This issue is related to the core interface and implementation
    and removed
    web[Component] This issue will be transferred to adk-web
    on Oct 28, 2025
  4. locked and limited conversation to collaborators on Nov 9, 2025
  5. converted this issue into a discussion #3460 on Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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