You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
given a job json payload with some field type mismatches like the example below. e.g. a string "true" provided for a field expecting bool true.
when we run databricks cli actions like create job/job reset with that malformed json payload, databricks cli will return an error message Error: invalid character '\n' in string literal which does not help debugging at all.
it would be the best if databricks cli could produce more meaningful error message to help easier identifying the real issue.
Steps to reproduce the behavior
databricks jobs reset --json @/job_payload
// will return `Error: invalid character '\n' in string literal`
// hard to quickly identify the real cause of failure
cat /job_payload
{
// omit a bunch of settings
"job_id": xxx,
"new_settings": {
"name": "xxx",
"email_notifications": {
"on_start": [],
"on_success": [],
"on_failure": []
},
"webhook_notifications": {
"on_start": [],
"on_failure": []
},
"notification_settings": {
"no_alert_for_skipped_runs": true,
"no_alert_for_canceled_runs": true
},
"timeout_seconds": 0,
"max_concurrent_runs": 1,
"tasks": [
{
"task_key": "xxx",
"spark_jar_task": {
// ...
},
"new_cluster": {
//...
},
"libraries": [
//...
],
"email_notifications": {},
"notification_settings": {},
"timeout_seconds": 0,
"max_retries": 0,
"min_retry_interval_millis": 0,
"retry_on_timeout": "true" // here is the problem, retry_on_timeout should provide a bool true instead of string "true"
}
]
}
}
Expected Behavior
hopefully cli error message can point to the real problem in the json payload. e.g. something like string provided for `retry_on_timeout` but expecting boolean can help a lot
OS and CLI version
v0.221.1
The text was updated successfully, but these errors were encountered:
Describe the issue
given a job json payload with some field type mismatches like the example below. e.g. a string "true" provided for a field expecting bool true.
when we run databricks cli actions like create job/job reset with that malformed json payload, databricks cli will return an error message
Error: invalid character '\n' in string literal
which does not help debugging at all.it would be the best if databricks cli could produce more meaningful error message to help easier identifying the real issue.
Steps to reproduce the behavior
Expected Behavior
hopefully cli error message can point to the real problem in the json payload. e.g. something like
string provided for `retry_on_timeout` but expecting boolean
can help a lotOS and CLI version
v0.221.1
The text was updated successfully, but these errors were encountered: