Skip to content

Fix HTTP_422_UNPROCESSABLE_ENTITY deprecation warnings. - #69415

Merged
pierrejeambrun merged 2 commits into
apache:mainfrom
tirkarthi:fix-http-422-deprecation
Jul 6, 2026
Merged

Fix HTTP_422_UNPROCESSABLE_ENTITY deprecation warnings.#69415
pierrejeambrun merged 2 commits into
apache:mainfrom
tirkarthi:fix-http-422-deprecation

Conversation

@tirkarthi

Copy link
Copy Markdown
Contributor

Use HTTP_422_UNPROCESSABLE_ENTITY from compat module to fix deprecation warnings during api server startup and tests.

[2026-07-05T15:29:17.939314Z] {/home/karthikeyan/stuff/python/airflow/airflow-core/src/airflow/api_fastapi/common/exceptions.py:132} WARNING - 'HTTP_422_UNPROCESSABLE_ENTITY' is deprecated. Use 'HTTP_422_UNPROCESSABLE_CONTENT' instead. category=DeprecationWarning
[2026-07-05T15:29:19.200948Z] {/home/karthikeyan/stuff/python/airflow/airflow-core/src/airflow/api_fastapi/core_api/routes/public/__init__.py:29} WARNING - 'HTTP_422_UNPROCESSABLE_ENTITY' is deprecated. Use 'HTTP_422_UNPROCESSABLE_CONTENT' instead. category=DeprecationWarning

Similar to #58828 and #56564

@tirkarthi
tirkarthi force-pushed the fix-http-422-deprecation branch from 1375dc5 to 07484bb Compare July 5, 2026 16:41

@pierrejeambrun pierrejeambrun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

@pierrejeambrun pierrejeambrun added this to the Airflow 3.3.1 milestone Jul 6, 2026
@pierrejeambrun
pierrejeambrun merged commit f24e272 into apache:main Jul 6, 2026
78 checks passed
@vatsrahul1001 vatsrahul1001 added the backport-to-v3-3-test Backport to v3-3-test label Jul 30, 2026
pierrejeambrun pushed a commit that referenced this pull request Jul 30, 2026
)

* Fix HTTP_422_UNPROCESSABLE_ENTITY deprecation warnings.

* Fix static check.

(cherry picked from commit f24e272)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-v3-3-test Backport to v3-3-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants