气流实验api dagrun给出400错误:输入参数应该是什么

San*_*jay 2 airflow apache-airflow

邮递员对http:// host:8080 / api / experimental / dags / test_flow / dag_runs的POST请求 给出“ 400错误请求:浏览器(或代理)发送了该服务器无法理解的请求”。当它尝试从请求中获取get_json时。即在行数据= request.get_json(force = True)

此API调用的输入应为..?

Leo*_*Leo 6

遇到相同的问题,通过发布一个空的JSON来解决

curl -X POST \
    http://localhost:8080/api/experimental/dags/<DAG_ID>/dag_runs \
    -H 'Cache-Control: no-cache' \
    -H 'Content-Type: application/json' \
    -d '{}'
Run Code Online (Sandbox Code Playgroud)