piotrlinski opened a new issue, #55:
URL: https://github.com/apache/airflow-client-python/issues/55

   According to documentation  the below code should trigger a dug run
   
   `api_response = api_instance.post_dag_run(
   dag_id = "dag_name",
    dag_run = DAGRun(..., state=DagState("queued")))`
   
   instead it raises the API error:
   
   `
   raise ApiException(http_resp=r)
             airflow_client.client.exceptions.ApiException: (400)
              Reason: BAD REQUEST
              HTTP response headers: HTTPHeaderDict({'Date': 'Thu, 15 Dec 2022 
13:18:16 GMT', 'Content-Type': 'application/problem+json', 'Content-Length': 
'210', 'Connection': 'keep-alive', 'X-Robots-Tag': 'noindex, nofollow', 
'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
              HTTP response body: {
                "detail": "Property is read-only - 'state'",
                "status": 400,
                "title": "Bad Request",
                "type": 
"https://airflow.apache.org/docs/apache-airflow/2.4.1/stable-rest-api-ref.html#section/Errors/BadRequest";
              }`
   
   


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