Error when accessing watcher execution results in ELK 8.15.0

We are releasing to a customer soon and would like to know if there is a patch or workaround for this issue.

In Kibana 18.15.0 and 8.15.3

  • Navigate to Stack Management -> Watcher
  • Under Watcher click Create and then "Create threshold alert"
  • Click on an Execution history's item
  • "Unable to load page" page will appear instead of the detail page

Clicking on Show details we get this error message

Error: Objects are not valid as a React child (found: 1730991840909). If you meant to render a collection of children, use an array instead.
    at mapIntoArray (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:381335:17)
    at mapIntoArray (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:381302:23)
    at mapChildren (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:381364:3)
    at Object.toArray (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:381414:10)
    at formatMessage (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:210971:63)
    at FormattedMessage (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:211126:17)
    at renderWithHooks (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:357424:18)
    at updateFunctionComponent (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:359795:20)
    at beginWork (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:361502:16)
    at HTMLUnknownElement.callCallback (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:346384:14)


The above error occurred in FormattedMessage:
    at FormattedMessage (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:211122:72)
    at h3
    at http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:149859:73
    at EuiTitle (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:133475:24)
    at div
    at http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:149859:73
    at EuiFlyoutHeader (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:85517:23)
    at div
    at http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:149859:73
    at div
    at http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:372356:59
    at FocusLockUI (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:368935:71)
    at http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:369831:60
    at EuiFocusTrapClass (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:85907:81)
    at EuiFocusTrap (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:85901:126)
    at EuiPortalClass (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:114968:81)
    at EuiPortal (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:114962:125)
    at EuiOverlayMask (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:110383:24)
    at EuiFlyoutWrapper (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:85148:24)
    at http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:84929:24
    at div
    at ExecutionHistoryPanel (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/plugin/watcher/1.0.0/watcher.chunk.0.js:13266:63)
    at WatchStatusPage (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/plugin/watcher/1.0.0/watcher.chunk.0.js:13639:10)
    at Route (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:377008:29)
    at Route (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/plugin/watcher/1.0.0/watcher.chunk.0.js:2533:3)
    at Switch (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:377210:29)
    at Routes (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/plugin/watcher/1.0.0/watcher.chunk.0.js:2665:3)
    at AppWithoutRouter
    at AppContextProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/plugin/watcher/1.0.0/watcher.chunk.0.js:5062:3)
    at http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/plugin/watcher/1.0.0/watcher.chunk.0.js:4955:3
    at C (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:377265:37)
    at RenderedRoute (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:375175:5)
    at Routes (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:375736:5)
    at Router (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:375674:15)
    at CompatRouter (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:373701:5)
    at Router (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:376627:30)
    at Router (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/plugin/watcher/1.0.0/watcher.chunk.0.js:2622:3)
    at App (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/plugin/watcher/1.0.0/watcher.chunk.0.js:4967:80)
    at Provider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/plugin/kibanaReact/1.0.0/kibanaReact.plugin.js:2793:15)
    at ErrorBoundaryInternal (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:45380:5)
    at KibanaErrorBoundary (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:45438:110)
    at KibanaErrorBoundaryProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:45203:3)
    at EuiContext (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:62942:24)
    at IntlProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:211230:47)
    at I18nProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:40828:3)
    at I18nContext (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/core/core.entry.js:19676:9)
    at CurrentEuiBreakpointProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:140287:23)
    at EuiComponentDefaultsProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:115477:36)
    at ThemeProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:149922:63)
    at EuiEmotionThemeProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:145284:23)
    at EuiThemeMemoizedStylesProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:145721:23)
    at EuiThemeProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:145545:22)
    at EuiCacheProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:115398:20)
    at EuiProviderNestedCheck (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:115630:23)
    at EuiProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:115688:25)
    at KibanaEuiProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/plugin/watcher/1.0.0/watcher.chunk.0.js:2329:10)
    at KibanaRootContextProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/plugin/watcher/1.0.0/watcher.chunk.0.js:2437:3)
    at KibanaRenderContextProvider (http://localhost:5601/mvj/XXXXXXXXXXXX/bundles/plugin/watcher/1.0.0/watcher.chunk.0.js:2241:3)

Thank you

This appears to have been solved in 8.16.0 with fix issue with viewing watcher execution history (#188654) · elastic/kibana@ef88274 · GitHub

Does something knows how I can patch this file in my own kibana build for 8.15? The problem is that this fix is in x-pack/plugins/watcher/public/application and I am not sure how we can build these.

The package.json has it listed as a dependencies as such

  "dependencies": {
    <snip>
    "@kbn/watcher-plugin": "link:x-pack/plugins/watcher",