diff --git a/server/plugin.ts b/server/plugin.ts index 98e2db09..8e06740a 100644 --- a/server/plugin.ts +++ b/server/plugin.ts @@ -65,7 +65,7 @@ export class ReportsDashboardsPlugin const timeoutError = new Error('Server busy'); timeoutError.statusCode = 503; - this.semaphore = withTimeout(new Semaphore(1), 180000, timeoutError); + this.semaphore = withTimeout(new Semaphore(1), 300000, timeoutError); } public setup(core: CoreSetup) { diff --git a/server/routes/utils/visual_report/visualReportHelper.ts b/server/routes/utils/visual_report/visualReportHelper.ts index 94bc6f19..bf1483bc 100644 --- a/server/routes/utils/visual_report/visualReportHelper.ts +++ b/server/routes/utils/visual_report/visualReportHelper.ts @@ -135,7 +135,7 @@ export const createVisualReport = async ( }); page.setDefaultNavigationTimeout(0); - page.setDefaultTimeout(100000); // use 100s timeout instead of default 30s + page.setDefaultTimeout(300000); // use 300s timeout instead of default 30s // Set extra headers that are needed if (!_.isEmpty(extraHeaders)) { await page.setExtraHTTPHeaders(extraHeaders);