Skip to content
Discussion options

You must be logged in to vote

@johnhoran
Thanks for the report. This is a behavior change between the Airflow 2 /api/v1 endpoint and the Airflow 3 /api/v2 endpoint.

In Airflow 3, state is handled as an array query parameter. Multiple values should be sent by repeating the query parameter, for example: /api/v2/dags/~/dagRuns?state=failed&state=queued

The old Airflow 2 form: /api/v2/dags/~/dagRuns?state=failed%2Cqueued is decoded as a single value, failed,queued, and then rejected because it is not one of the valid individual DagRun states: queued, running, success, or failed.

So for Airflow 3 API v2, please use repeated state parameters instead of a comma-separated value. state=failed&state=queued not state=failed%2Cqu…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by johnhoran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants