-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
bot triaged[Bot] This issue is triaged by ADK bot[Bot] This issue is triaged by ADK botweb[Component] This issue will be transferred to adk-web[Component] This issue will be transferred to adk-web
Description
Describe the bug
When you mount the fastapi app as sub-application, the js in /dev-ui/
stops working.
To Reproduce
- Make the agent
from pathlib import Path
import uvicorn
from fastapi import FastAPI
from google.adk.cli.fast_api import get_fast_api_app
app = FastAPI()
adk_app = get_fast_api_app(
agents_dir=str((Path(__file__) / '..').absolute()),
session_service_uri="sqlite:///:memory:",
allow_origins=["*"],
web=True,
)
app.mount("/adk", adk_app)
uvicorn.run(app, host="0.0.0.0", port=8081)
- Run the code
- Visit http://localhost:8081/adk/dev-ui/
- See the error Http failure response for http://localhost:8081/list-apps?relative_path=./: 404 Not Found
Expected behavior
There would be no error, proper subpath would be used.
Screenshots

Desktop (please complete the following information):
- OS: Windows 11
- Python version(python -V): Python 3.12.8
- ADK version(pip show google-adk): 1.7.0
Additional context
Add any other context about the problem here.
chanyou0311
Metadata
Metadata
Assignees
Labels
bot triaged[Bot] This issue is triaged by ADK bot[Bot] This issue is triaged by ADK botweb[Component] This issue will be transferred to adk-web[Component] This issue will be transferred to adk-web