From f517f3f616e0f2a1ebec7d5db9731bc5d0275e89 Mon Sep 17 00:00:00 2001 From: Zhongnan Su Date: Tue, 25 May 2021 14:51:32 -0700 Subject: [PATCH] increase chromium timeout to 100s (#58) 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/dashboards-reports/public/components/context_menu/context_menu_helpers.js b/dashboards-reports/public/components/context_menu/context_menu_helpers.js index 59dda745..abd828c7 100644 --- a/dashboards-reports/public/components/context_menu/context_menu_helpers.js +++ b/dashboards-reports/public/components/context_menu/context_menu_helpers.js @@ -158,6 +158,5 @@ export const replaceQueryURL = (pageUrl) => { toDateString + '))', "'" + toDateFormat.toISOString() + "'))" ); - console.log(`log output queryUrl\n` + queryUrl); return queryUrl; }; diff --git a/dashboards-reports/server/routes/utils/visual_report/visualReportHelper.ts b/dashboards-reports/server/routes/utils/visual_report/visualReportHelper.ts index 22690e47..3f902186 100644 --- a/dashboards-reports/server/routes/utils/visual_report/visualReportHelper.ts +++ b/dashboards-reports/server/routes/utils/visual_report/visualReportHelper.ts @@ -122,7 +122,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);