From fca8c581db0f85eefe3d9b547b9a3d4b43ee6b1b Mon Sep 17 00:00:00 2001 From: Tiago Costa Date: Fri, 1 Sep 2023 14:23:21 +0100 Subject: [PATCH] chore(NA): temporarily enable more detailed error for NoSuchSessionError (#165389) This PR just temporarily enables more detail logging for WebDriver NoSuchSessionError happening on FTR. Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Dzmitry Lemechko --- test/functional/services/common/browser.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/functional/services/common/browser.ts b/test/functional/services/common/browser.ts index f7957777408c3..0a1798442f360 100644 --- a/test/functional/services/common/browser.ts +++ b/test/functional/services/common/browser.ts @@ -664,6 +664,12 @@ class BrowserService extends FtrService { this.log.error( `WebDriver session is no longer valid.\nProbably Chrome process crashed when it tried to use more memory than what was available.` ); + // TODO: Remove this after a while. We are enabling richer logs in order to try catch the real error cause. + this.log.error( + `Original Error Logging.\n Name: ${err.name};\n Message: ${err.message};\n Stack: ${ + err.stack + }\n RemoteStack: ${(err as NoSuchSessionError).remoteStacktrace}` + ); } return false; }