atul-astronomer opened a new issue, #55137: URL: https://github.com/apache/airflow/issues/55137
### Apache Airflow version main (development) ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? Airflow UI is broken when keeping url_prefix as empty string while registering FastAPI plugin <img width="1724" height="908" alt="Image" src="https://github.com/user-attachments/assets/ab998007-7bf0-4ab6-894d-acf850cbe3bd" /> ```javascript 127.0.0.1:59768 - "POST /auth/token HTTP/1.1" 404 Not Found ``` ### What you think should happen instead? Error should be handled gracefully ### How to reproduce Place below plugin file in 'files/plugins/' as start airflow using breeze. ```python from airflow.plugins_manager import AirflowPlugin from fastapi import FastAPI my_app = FastAPI() @my_app.get("/ping") async def ping(): return {"message": "pong"} class MyFastAPIPlugin(AirflowPlugin): name = "my_fastapi_plugin" fastapi_apps = [ { "name": "example_api", "app": my_app, "url_prefix": "" } ] ``` ### Operating System Linux ### Versions of Apache Airflow Providers _No response_ ### Deployment Other ### Deployment details _No response_ ### Anything else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
