Skip to content

Conversation

@pierrejeambrun
Copy link
Member

Follow up of #55506:

Middleware code happens outside of global exception handlers -> this add exception handling so 401, 403 and other HTTPException are handled and return the appropriate response instead of a plain 500 error.

Before

Screenshot 2025-10-20 at 18 19 42

After

Screenshot 2025-10-20 at 18 19 20

@pierrejeambrun pierrejeambrun added this to the Airflow 3.2.0 milestone Oct 20, 2025
@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label Oct 20, 2025
@pierrejeambrun pierrejeambrun force-pushed the fix-refresh-middleware-error-handling branch from f18f4e8 to dbdf1c4 Compare October 21, 2025 10:57
@vincbeck vincbeck merged commit d7174df into apache:main Oct 21, 2025
112 checks passed
Jonpaco23 pushed a commit to Jonpaco23/airflow that referenced this pull request Oct 21, 2025
@pierrejeambrun
Copy link
Member Author

pierrejeambrun commented Dec 8, 2025

refresh token flow milestone were revised and updated (#58649), it was backported, we also need to backport this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants