Kibana version: master
Describe the bug:
When navigating around Visualize/Dashboard, a "query timed out" toast is popping up from time to time. I didn't find a reliable way to reproduce it, but it should be fairly common when creating visualizations, adding them to the dashboard, filtering etc. (basically using Kibana like a regular user). It can never be matched to the current state of the UI - e.g. the toast is shown even if the chart in Visualize is rendered correctly.
Expected behavior:
Toast should only be shown if there is actually information missing in the current view.
Screenshots (if relevant):
Errors in browser console (if relevant):
There is also an error in the console, doesn't seem like to point at the root cause and might be a separate smaller issue:
Warning: React does not recognize the `toastMessage` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `toastmessage` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
in div (created by EuiToast)
in EuiToast (created by EuiGlobalToastList)
in EuiGlobalToastListItem (created by EuiGlobalToastList)
in div (created by EuiGlobalToastList)
in EuiGlobalToastList (created by GlobalToastList)
in GlobalToastList
in EuiContext (created by I18nContext)
in PseudoLocaleWrapper (created by I18nProvider)
in IntlProvider (created by I18nProvider)
in I18nProvider (created by I18nContext)
in I18nContext
Any additional context:
Maybe in-flight requests are not reliably cancelled at all times? Not sure how to debug as I'm not super familiar with async search.
Pinging @elastic/kibana-app-arch (Team:AppArch)
I also had this popup, no clear pattern, somehow it seemed they popup when I returned to a Kibana window after a while
I didn't interact with the Kibana window, and no network requests were started after the initial fetch of the data, after a while those popups appear
Found the issue, will have a PR fixing it soon
Most helpful comment
Found the issue, will have a PR fixing it soon