Open jughosta opened 2 hours ago
Pinging @elastic/kibana-esql (Team:ESQL)
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)
@jughosta I cant replicate. Can you give more details? How are you navigating in ES|QL? With which datasource?
@stratoula, I also saw this error. In my case it was an empty deployment > dashboard > try ESQL > see error in console
Uncaught TypeError: Cannot read properties of undefined (reading 'failed')
at extractWarnings (extract_warnings.ts:15:1)
at handleWarnings (handle_warnings.tsx:29:1)
at search_service.ts:239:1
at Array.forEach (<anonymous>)
at Object.showWarnings (search_service.ts:233:1)
at getSearchWarningMessages (utils.ts:281:1)
at Embeddable.getSearchWarningMessages (embeddable.tsx:800:1)
at embeddable.tsx:299:1
at Object.next (use_expression_renderer.ts:114:1)
@Dosant thanx, I can replicate it now 🙌
For me it happens every time I open ES|QL in Discover. Also even after a page refresh.
This fails because in ES|QL we dont send _clusters
or _shards
or timed_out
for regular indices. We need to check for the existence of the properties first.
Kibana version: main
Describe the bug: I can see an error in the Console when navigating to ES|QL in Discover:
This might mean that search warnings (like failed search on some shards) would not be surfaced to the user in UI.