From 543dd08ce4ebef4191867a8386643aa94e51cb33 Mon Sep 17 00:00:00 2001 From: Zhongnan Su Date: Tue, 25 May 2021 15:05:04 -0700 Subject: [PATCH] increase chromium timeout to 100s (#372) Signed-off-by: Zhongnan Su --- .../public/components/context_menu/context_menu_helpers.js | 1 - .../server/routes/utils/visual_report/visualReportHelper.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/kibana-reports/public/components/context_menu/context_menu_helpers.js b/kibana-reports/public/components/context_menu/context_menu_helpers.js index 5d7407d0..99339e46 100644 --- a/kibana-reports/public/components/context_menu/context_menu_helpers.js +++ b/kibana-reports/public/components/context_menu/context_menu_helpers.js @@ -145,6 +145,5 @@ export const replaceQueryURL = (pageUrl) => { toDateString + '))', "'" + toDateFormat.toISOString() + "'))" ); - console.log(`log output queryUrl\n` + queryUrl); return queryUrl; }; diff --git a/kibana-reports/server/routes/utils/visual_report/visualReportHelper.ts b/kibana-reports/server/routes/utils/visual_report/visualReportHelper.ts index f757193e..36f1a372 100644 --- a/kibana-reports/server/routes/utils/visual_report/visualReportHelper.ts +++ b/kibana-reports/server/routes/utils/visual_report/visualReportHelper.ts @@ -102,7 +102,7 @@ export const createVisualReport = async ( }); const page = await browser.newPage(); page.setDefaultNavigationTimeout(0); - page.setDefaultTimeout(60000); // use 60s timeout instead of default 30s + page.setDefaultTimeout(100000); // use 100s timeout instead of default 30s if (cookie) { logger.info('domain enables security, use session cookie to access'); await page.setCookie(cookie);