From f013a40a3766dd261f806b72265d30265bd08ee8 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 ebfd0fc1..066370a4 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 457c705e..470ebc26 100644 --- a/kibana-reports/server/routes/utils/visual_report/visualReportHelper.ts +++ b/kibana-reports/server/routes/utils/visual_report/visualReportHelper.ts @@ -111,7 +111,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);