Skip to content

Commit

Permalink
Increase Puppeteer timeout on load event
Browse files Browse the repository at this point in the history
  • Loading branch information
enguerranws authored Jun 18, 2024
1 parent 1daec7b commit 56c1da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generatePdfFromHtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const makeGeneratePdfFromHtml =

logWithRequestId(requestId, "generatePdfFromHtml started");
const page = await browser.newPage();
page.setDefaultNavigationTimeout(2_500);
page.setDefaultNavigationTimeout(5_000);

try {
await page.setContent(htmlContent, { waitUntil: "load" });
Expand Down

0 comments on commit 56c1da2

Please sign in to comment.