airflow.api_connexion.endpoints.dag_endpoint.patch_dag -->> Property is read-only - '****'
See original GitHub issueApache Airflow version:
master-python3.8-ci
docker pull apache/airflow:master-python3.8-ci
DIGEST:sha256:a4cf33bdbde82b6db6a89b967f4d51ba20101ef815b8bc504cbd9ac1cb659018
Last updated4 days agobypotiuk
Kubernetes version (if you are using kubernetes) (use kubectl version
):
Environment:
- Cloud provider or hardware configuration:
- OS (e.g. from /etc/os-release):
- Kernel (e.g.
uname -a
): - Install tools:
- Others:
What happened: API(airflow.api_connexion.endpoints.dag_endpoint.patch_dag) update any DAG info response are: 400 Property is read-only - ‘****’
➜ ~ curl -v -H "Content-Type: application/json" -X PATCH --data '{ "description": null, "is_paused": true, "schedule_interval": { "__type": "CronExpression", "value": "0 0 * * *" }, "tags": [ { "name": "example" } ]}' http://******/api/v1/dags/example_bash_operator
* Trying 118.*****...
* TCP_NODELAY set
* Connected to* (#0)
> PATCH /api/v1/dags/example_bash_operator HTTP/1.1
> Host: *
> User-Agent: curl/7.64.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 325
>
* upload completely sent off: 325 out of 325 bytes
< HTTP/1.1 400 BAD REQUEST
< Server: gunicorn/19.10.0
< Date: Sat, 22 Aug 2020 09:29:08 GMT
< Connection: close
< Content-Type: application/problem+json
< Content-Length: 119
< X-Frame-Options: DENY
< Vary: Cookie
< Set-Cookie: session=eyJfcGVybWFuZW50Ijp0cnVlfQ.X0DlZA.1F_VrxgrmOQWHSaA9d_b1czM9SU; Expires=Mon, 21-Sep-2020 09:29:08 GMT; HttpOnly; Path=/
<
{
"detail": "Property is read-only - 'description'",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}
* Closing connection 0
What you expected to happen:
How to reproduce it:
Anything else we need to know:
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (11 by maintainers)
Top Results From Across the Web
Airflow REST API
This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept JSON as input and...
Read more >How to trigger airflow dag with REST API (I get "Property is ...
The Airflow REST API docs for that endpoint says state is required in the body, however you shouldn't need to include that in...
Read more >TypeError: "x" is read-only - JavaScript - MDN Web Docs
The JavaScript strict mode-only exception "is read-only" occurs when a global variable or object property that was assigned to is a read-only property....
Read more >ReadOnlyMapWrapper (JavaFX 8) - Oracle Help Center
This class provides a convenient class to define read-only properties. It creates two properties ... Properties inherited from class javafx.beans.property.
Read more >Document.ReadOnly Property (Microsoft.Office.Tools.Word)
Gets a value that indicates whether changes to the document cannot be saved to the original document.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Whoops so only is_paused field can be patched … right!
@kaxil Yes. I’m happy to help. You can assign it to me