dbaceko opened a new issue, #33111:
URL: https://github.com/apache/airflow/issues/33111
### Apache Airflow version
Other Airflow 2 version (please specify below)
### What happened
Airflow Version 2.6.2
We can't trigger any DAG since the POST request returns the same response as
GET request:
`{
"dag_runs": [......],
"total_entries": 202
}`
Code with post request:
### What you think should happen instead
Instead, it should return the same structure as described in docs:
{
"dag_run_id": "string",
"dag_id": "string",
"logical_date": "2019-08-24T14:15:22Z",
"execution_date": "2019-08-24T14:15:22Z",
"start_date": "2019-08-24T14:15:22Z",
"end_date": "2019-08-24T14:15:22Z",
"data_interval_start": "2019-08-24T14:15:22Z",
"data_interval_end": "2019-08-24T14:15:22Z",
"last_scheduling_decision": "2019-08-24T14:15:22Z",
"run_type": "backfill",
"state": "queued",
"external_trigger": true,
"conf": {},
"note": "string"
}
### How to reproduce
`data = {
'my_data': {
'id': '1',
'firstName': 'John',
'lastName': 'Smith'
}
}
body = {
"conf": {
"data": data
},
}
headers = {
'accept': 'application/json',
'Content-Type': 'application/json',
}
print(url)
req = requests.post(
url=f"http://{url}/api/v1/dags/{dag_id}/dagRuns",
data=json.dumps(body),
auth=(aiflow_username, aiflow_password),
headers=headers,
verify=False
)`
### Operating System
Ubuntu 20.04 LTS
### Versions of Apache Airflow Providers
_No response_
### Deployment
Virtualenv installation
### 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]