You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "raj ram (Jira)" <ji...@apache.org> on 2020/02/05 20:16:00 UTC
[jira] [Created] (AIRFLOW-6741) Cant run DAG using REST api POST
call
raj ram created AIRFLOW-6741:
--------------------------------
Summary: Cant run DAG using REST api POST call
Key: AIRFLOW-6741
URL: https://issues.apache.org/jira/browse/AIRFLOW-6741
Project: Apache Airflow
Issue Type: Bug
Components: api
Affects Versions: 1.10.1
Environment: AWS Linux 1
Reporter: raj ram
I am not able to POST a request to airflow 1.10.1 to start a DAG. When I did a POST using CURL
curl -X POST http://localhost:8080/api/experimental/dags/<DAG_ID>/dag_runs -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d {}
I got this error. curl: (52) Empty reply from server
I was able to POST to other REST endpoints. Also, I am able to POST to airflow version 1.10.5 using the exact same command.
Here is the airflow.cfg API setting
[cli]
# In what way should the cli access the API. The LocalClient will use the
# database directly, while the json_client will use the api running on the
# webserver
api_client = airflow.api.client.local_client
# If you set web_server_url_prefix, do NOT forget to append it here, ex:
# endpoint_url = http://localhost:8080/myroot
# So api will look like: http://localhost:8080/myroot/api/experimental/...
endpoint_url = http://localhost:$AIRFLOW_PORT
[api]
# How to authenticate users of the API
auth_backend = airflow.api.auth.backend.default
--
This message was sent by Atlassian Jira
(v8.3.4#803005)