Closed ratkorle closed 6 years ago
I cant pass puppeteerLambda.getBrowser() for few days.So I will be greatfull if anyone of the creators help or discuss. Evrything works fine I connect to db and stuff. Debug: setup s3 chrome. .... which is called by :
const setupS3Chrome = () => { return new Promise((resolve, reject) => { const params = { Bucket: config.remoteChromeS3Bucket, Key: config.remoteChromeS3Key, };
I have passed CHROME_BUCKET and CHROME_KEY
async function parseEngine(commandArray, inPage, iterator, parameters) { try { let page = inPage; if (!page) { console.log('getting browser'); const browser = await puppeteerLambda.getBrowser({ headless: true, slowMo: 100, args: ['--no-sandbox', '--disable-setuid-sandbox', '--start-fullscreen', '--window-size=1413,749']}); console.log('opening page'); page = await browser.newPage(); await page.setViewport({ width: 1413, height: 749 }); page.setUserAgent(config.USER_AGENT); }
I cant pass puppeteerLambda.getBrowser() for few days.So I will be greatfull if anyone of the creators help or discuss. Evrything works fine I connect to db and stuff. Debug: setup s3 chrome. .... which is called by :
const setupS3Chrome = () => { return new Promise((resolve, reject) => { const params = { Bucket: config.remoteChromeS3Bucket, Key: config.remoteChromeS3Key, };
I have passed CHROME_BUCKET and CHROME_KEY
async function parseEngine(commandArray, inPage, iterator, parameters) { try { let page = inPage; if (!page) { console.log('getting browser'); const browser = await puppeteerLambda.getBrowser({ headless: true, slowMo: 100, args: ['--no-sandbox', '--disable-setuid-sandbox', '--start-fullscreen', '--window-size=1413,749']}); console.log('opening page'); page = await browser.newPage(); await page.setViewport({ width: 1413, height: 749 }); page.setUserAgent(config.USER_AGENT); }