From 2067dd3d15e96464d3313edb69c4e3f640510781 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/public/components/context_menu/context_menu_helpers.js b/public/components/context_menu/context_menu_helpers.js index 59dda745..abd828c7 100644 --- a/public/components/context_menu/context_menu_helpers.js +++ b/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/server/routes/utils/visual_report/visualReportHelper.ts b/server/routes/utils/visual_report/visualReportHelper.ts index 22690e47..3f902186 100644 --- a/server/routes/utils/visual_report/visualReportHelper.ts +++ b/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);