Jorricks commented on PR #26457:
URL: https://github.com/apache/airflow/pull/26457#issuecomment-1259983996

   Some things that I came across that are failing for the mapped instances and 
that should be fixed in a separate MR.
   This is with the example DAG of mapped task instances loaded shown here; 
https://airflow.apache.org/docs/apache-airflow/2.3.0/concepts/dynamic-task-mapping.html
   
   # 1. Invalid request with empty undefined DAG ID is made.
   For some reason this request is made at the start of loading [this DAG 
details 
page](http://localhost:28080/dags/simple_mapping/grid?dag_run_id=scheduled__2022-03-04T00%3A00%3A00%2B00%3A00&task_id=add_one)
   - Request URL: 
http://localhost:28080/api/v1/dags/simple_mapping/dagRuns/undefined/taskInstances/
   ```
   curl 
'http://localhost:28080/api/v1/dags/simple_mapping/dagRuns/undefined/taskInstances/'
 \
     -H 'Referer: 
http://localhost:28080/dags/simple_mapping/grid?dag_run_id=scheduled__2022-03-04T00%3A00%3A00%2B00%3A00&task_id=add_one&map_index=1'
 
   ```
   
   # 2. 
   
http://localhost:28080/api/v1/dags/simple_mapping/dagRuns/scheduled__2022-03-04T00:00:00+00:00/taskInstances/add_one
 returns a 404 with contents:
   ```
   {
     "detail": "Task instance is mapped, add the map_index value to the URL",
     "status": 404,
     "title": "Task instance not found",
     "type": 
"http://apache-airflow-docs.s3-website.eu-central-1.amazonaws.com/docs/apache-airflow/latest/stable-rest-api-ref.html#section/Errors/NotFound";
   }
   ```
   
   


-- 
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