Page MenuHomeSoftware Heritage
Paste P1089

Elasticsearch date errro
ActivePublic

Authored by KShivendu on Jul 5 2021, 6:26 PM.
[
400,
"search_phase_execution_exception",
{
"error": {
"root_cause": [
{
"type": "parse_exception",
"reason": "failed to parse date field [foo bar baz] with format [strict_date_optional_time||epoch_millis]: [failed to parse date field [foo bar baz] 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": "test",
"node": "vQF2XSuvSlO8-MfX85NSuA",
"reason": {
"type": "query_shard_exception",
"reason": "failed to create query: failed to parse date field [foo bar baz] with format [strict_date_optional_time||epoch_millis]: [failed to parse date field [foo bar baz] with format [strict_date_optional_time||epoch_millis]]",
"index_uuid": "SNZrgzv7T-WM5T2BH-qgVg",
"index": "test",
"caused_by": {
"type": "parse_exception",
"reason": "failed to parse date field [foo bar baz] with format [strict_date_optional_time||epoch_millis]: [failed to parse date field [foo bar baz] with format [strict_date_optional_time||epoch_millis]]",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "failed to parse date field [foo bar baz] with format [strict_date_optional_time||epoch_millis]",
"caused_by": {
"type": "date_time_parse_exception",
"reason": "Failed to parse with all enclosed parsers"
}
}
}
}
}
],
"caused_by": {
"type": "parse_exception",
"reason": "failed to parse date field [foo bar baz] with format [strict_date_optional_time||epoch_millis]: [failed to parse date field [foo bar baz] with format [strict_date_optional_time||epoch_millis]]",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "failed to parse date field [foo bar baz] with format [strict_date_optional_time||epoch_millis]",
"caused_by": {
"type": "date_time_parse_exception",
"reason": "Failed to parse with all enclosed parsers"
}
}
}
},
"status": 400
}
]