kibana
kibana copied to clipboard
[Search Sessions] Error tooltip always says `unknown`
Kibana version: 7.17, 8.3, other
Describe the bug:
When search-session is an error state, the tooltip over error status on management shows "Unknown" instead of error details
Steps to reproduce:
- Get a session into an error state
- See that no matter the error, the tooltip always says unknown
Expected behavior:
Errors details shown
Screenshots (if relevant):

Any additional context:
Can see underlying error using devtools:
GET .kibana*/_search
{
"sort": [
{
"search-session.created": {
"order": "desc"
}
}
],
"size":1000,
"query": {
"bool": {
"filter": [
{
"term": {
"type": "search-session"
}
},
{
"term": {
"search-session.persisted": true
}
},
{
"term": {
"search-session.status": "error"
}
}
]
}
}
}
The unknown is coming from here:
https://github.com/elastic/kibana/blob/df38c6fc468392fc1db3011f2af8881b63603745/src/plugins/data/public/search/session/sessions_mgmt/components/status.tsx#L121
Not sure how it was supposed to work, since there is no error prop on session object
Pinging @elastic/kibana-app-services (Team:AppServicesSv)
Yes, I have also faced this problem. I can't even delete this session