You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at Interface.onClose (/opt/nodejs/node_modules/@puppeteer/browsers/lib/cjs/launch.js:310:24)
at Interface.emit (node:events:530:35)
at Interface.emit (node:domain:488:12)
at Interface.close (node:internal/readline/interface:527:10)
at Socket.onend (node:internal/readline/interface:253:10)
at Socket.emit (node:events:530:35)
at Socket.emit (node:domain:488:12)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
sriramwarsaicharan
changed the title
[BUG] Failed to launch the browser process! on AWS Lambda
[BUG] [help wanted] Failed to launch the browser process! on AWS Lambda
Apr 23, 2024
sriramwarsaicharan
changed the title
[BUG] [help wanted] Failed to launch the browser process! on AWS Lambda
[BUG] [HELP WANTED] Failed to launch the browser process! on AWS Lambda
Apr 23, 2024
sriramwarsaicharan
changed the title
[BUG] [HELP WANTED] Failed to launch the browser process! on AWS Lambda
[BUG] Failed to launch the browser process! on AWS Lambda
Apr 23, 2024
Environment
@sparticuz/chromium
Version: 123.0.1puppeteer-core
Version: 22.6.3Expected Behavior
I need to open the browser on aws lambda.
Current Behavior
"OUT:Error: Failed to launch the browser process!\n\n\nTROUBLESHOOTING: https://pptr.dev/troubleshooting\n"
TROUBLESHOOTING: https://pptr.dev/troubleshooting
Steps to Reproduce
const puppeteer = require("puppeteer-core");
const chromium = require("@sparticuz/chromium");
const aws = require('aws-sdk');
const fs = require('fs')
exports.handler = async (event, context, callback) => {
let result = null;
let browser = null;
try {
browser = await puppeteer.launch({
args: chromium.args,
defaultViewport: chromium.defaultViewport,
executablePath: await chromium.executablePath(),
headless: chromium.headless,
ignoreHTTPSErrors: true,
});
} 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: