Calling endpoint dags/{dag_id}/dagRuns for removed DAG returns "500 Internal Server Error" instead of "404 Not Found" #29839
Labels
affected_version:2.4
Issues Reported for 2.4
area:API
Airflow's REST/HTTP API
kind:bug
This is a clearly a bug
Apache Airflow version
Other Airflow 2 version (please specify below)
What happened
Apache Airflow version: 2.4.0
I remove DAG from storage then trigger it:
curl -X POST 'http://localhost:8080/api/dags/<DAG_ID>/dag_runs' --header 'Content-Type: application/json' --data '{"dag_run_id":"my_id"}'
it returns:
What you think should happen instead
should response with 404 "A specified resource is not found."
How to reproduce
Operating System
18.04.1 Ubuntu
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: