-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Add Phase and Grouped to Error property on ServerError
Example:
{
"error" : {
"root_cause" : [
{
"type" : "parse_exception",
"reason" : "failed to parse date field [-1m] with format [strict_date_optional_time||epoch_millis]"
}
],
"type" : "search_phase_execution_exception",
"reason" : "all shards failed",
"phase" : "query",
"grouped" : true,
"failed_shards" : [
{
"shard" : 0,
"index" : "project",
"node" : "Uo6PBln_QrmD8Y9o1NKdQw",
"reason" : {
"type" : "parse_exception",
"reason" : "failed to parse date field [-1m] with format [strict_date_optional_time||epoch_millis]",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "Parse failure at index [2] of [-1m]"
}
}
}
],
"caused_by" : {
"type" : "parse_exception",
"reason" : "failed to parse date field [-1m] with format [strict_date_optional_time||epoch_millis]",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "Parse failure at index [2] of [-1m]"
}
}
},
"status" : 400
}Add Line and Col
Example:
{
"error" : {
"root_cause" : [
{
"type" : "parsing_exception",
"reason" : "[terms] unknown token [END_ARRAY] after [numberOfCommits]",
"line" : 9,
"col" : 7
}
],
"type" : "parsing_exception",
"reason" : "[terms] unknown token [END_ARRAY] after [numberOfCommits]",
"line" : 9,
"col" : 7
},
"status" : 400
}Metadata
Metadata
Assignees
Labels
No labels