ranjanmicrosoft opened a new issue, #53736:
URL: https://github.com/apache/airflow/issues/53736

   ### Apache Airflow version
   
   2.11.0
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   When I call the Airflow Run DAG API, I get the following error: 
   
   {
     "detail": "DAG with dag_id: 'run_item_dag' not found",
     "status": 404,
     "title": "DAG not found",
     "type": 
"https://airflow.apache.org/docs/apache-airflow/2.10.5/stable-rest-api-ref.html#section/Errors/NotFound";
   }
   
   But I have created the DAG. When I navigate to Airflow, I see the correct 
error message, including a **ModuleNotFoundError** which tells me I need to 
install a plugin. 
   
   Broken DAG: [/opt/airflow/dags/fabric_run_item_dag.py]
   Traceback (most recent call last):
     File "<frozen importlib._bootstrap>", line 488, in 
_call_with_frames_removed .. 
   
   Installing the plugin would resolve the error, but due to the API issue, I 
have no idea that this is what needs to be done. 
   
   ### What you think should happen instead?
   
   Proper error message should be given in API response, indicating that the 
item is present but malformed. A 404 is the incorrect error code in this 
scenario. 
   
   ### How to reproduce
   
   Try using a plugin that doesn't exist, or that you don't have installed in 
your airflow, and call itemName/dagRuns endpoint
   
   ### Operating System
   
   .
   
   ### 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?
   
   - [ ] 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to