We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chromium
puppeteer-core
Node.js Version
Lambda Runtime
Lambda Memory
Lambda Ephemeral storage
We are executing multiple scripts (multiple invocations [~50] of the same lambda ) simultaneously.
Navigation timeout of 20000 ms exceeded
await page.goto(url, { waitUntil: 'load' });
import puppeteer from 'puppeteer-core'; import chromium from "@sparticuz/chromium"; export async function handler(event, context,callback) { let result = null; let browser = null; try { chromium.setGraphicsMode = true; browser = await puppeteer.launch({ args: chromium.args, defaultViewport: chromium.defaultViewport, executablePath: await chromium.executablePath(), headless: true, ignoreHTTPSErrors: true, devtools: false, protocolTimeout: 240000, args: [ "--no-sandbox", "--disable-setuid-sandbox", "--disable-dev-shm-usage", "--single-process", "--no-zygote", ] }); let page = await browser.newPage(); await page.goto(event.url || 'https://example.com'); result = await page.title(); } catch (error) { return callback(error); } finally { if (browser !== null) { (await browser).close(); } } return callback(null, result); };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
chromium
Version: 122.0.0puppeteer-core
Version: 22.5.0 / 22.6.0Node.js Version
: 20. xLambda Runtime
: nodejs20.xLambda Memory
: 2048MBLambda Ephemeral storage
: 512MBExecutions
We are executing multiple scripts (multiple invocations [~50] of the same lambda ) simultaneously.
Current Behavior
Navigation timeout of 20000 ms exceeded
atawait page.goto(url, { waitUntil: 'load' });
Code
The text was updated successfully, but these errors were encountered: