You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "atul-astronomer (via GitHub)" <gi...@apache.org> on 2025/09/01 12:12:23 UTC

[I] Airflow UI is broken when keeping url_prefix as empty string while registering FastAPI plugin [airflow]

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: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow UI is broken when keeping url_prefix as empty string while registering FastAPI plugin [airflow]

Posted by "anasatzemoso (via GitHub)" <gi...@apache.org>.
anasatzemoso commented on issue #55137:
URL: https://github.com/apache/airflow/issues/55137#issuecomment-3245093726

   Can I work on this issue ?


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow UI is broken when keeping url_prefix as empty string while registering FastAPI plugin [airflow]

Posted by "vatsrahul1001 (via GitHub)" <gi...@apache.org>.
vatsrahul1001 commented on issue #55137:
URL: https://github.com/apache/airflow/issues/55137#issuecomment-3243899534

   cc: @pierrejeambrun 


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow UI is broken when keeping url_prefix as empty string while registering FastAPI plugin [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on issue #55137:
URL: https://github.com/apache/airflow/issues/55137#issuecomment-3244516144

   Thanks, that's really an edge case, but we probably want a better error message and prevent plugins from breaking the entire API server in case of a wrong configuration.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow UI is broken when keeping url_prefix as empty string while registering FastAPI plugin [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on issue #55137:
URL: https://github.com/apache/airflow/issues/55137#issuecomment-3248514019

   I wouldn't classify this as 'critical'. it's really an edge case of a bad plugin configuration that could crash the server, but that will never happen if people use plugins correctly. (definitely something to fix though)


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow UI is broken when keeping url_prefix as empty string while registering FastAPI plugin [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on issue #55137:
URL: https://github.com/apache/airflow/issues/55137#issuecomment-3249733436

   After digging into it, it breaks 'external_links' feature, which is critical. Updated label, I'll open a PR shortly 


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow UI is broken when keeping url_prefix as empty string while registering FastAPI plugin [airflow]

Posted by "vatsrahul1001 (via GitHub)" <gi...@apache.org>.
vatsrahul1001 commented on issue #55137:
URL: https://github.com/apache/airflow/issues/55137#issuecomment-3248518196

   @pierrejeambrun updated to medium


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow UI is broken when keeping url_prefix as empty string while registering FastAPI plugin [airflow]

Posted by "jason810496 (via GitHub)" <gi...@apache.org>.
jason810496 closed issue #55137: Airflow UI is broken when keeping url_prefix as empty string while registering FastAPI plugin
URL: https://github.com/apache/airflow/issues/55137


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org