Revisit how we return ES error in the <SectionError /> #77165
Labels
enhancement
New value added to drive a business result
Feature:Index Management
Index and index templates UI
Team:Kibana Management
Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
In index template, after the upgrade to composable template, we don't get useful errors coming back from ES when the template is invalid. Instead we get a
Which is really not that great to fix the template.
The reason is that ES returns the reason under a
caused_by
, which we strip in our<SectionError />
component. We need to retrieve recursively all the leaves ofcaused_by.reason
to get meaningful error messages.This is the complete error returned by ES not surfaced in the UI
The text was updated successfully, but these errors were encountered: