Skip to content

Swagger documentation fails to load in google-adk v1.16 due to FastAPI version conflict #3173

@natansalvadorligabo

Description

@natansalvadorligabo

Describe the bug
When installing google-adk v1.16, the Swagger documentation page (accessed via adk web /docs) does not appear. Instead, the following error is displayed:

Failed to load API definition. Errors Hide Fetch error Internal Server Error /openapi.json

I resolved the issue by downgrading FastAPI to version 0.115.0.

To Reproduce

  1. Install google-adk v1.16
  2. Run adk web
  3. Open the Swagger documentation page
  4. Observe the error above

Expected behavior
The Swagger documentation page should load normally after running adk web.

Screenshots
http://127.0.0.1:8000/docs
Image

Desktop:

  • OS: Windows 11
  • Python version (python -V): 3.13/3.14
  • ADK version (pip show google-adk): 1.16

Model Information:

  • Which model is being used: gemini-2.5-flash

Additional context
Downgrading FastAPI to 0.115.0 restored the documentation route.

Metadata

Metadata

Labels

services[Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etc

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions