Closed nschubach closed 6 years ago
Just realized the alternate error I was getting is because the file was not named properly. Extracted the headless-chrome, renamed to headless_shell and re-tarred the file and I got the familiar:
START RequestId: Version: $LATEST
2018-08-24T18:59:26.288Z setup local chrome
2018-08-24T18:59:30.069Z setup done
2018-08-24T18:59:31.425Z new page
END RequestId:
REPORT RequestId: Duration: 5201.74 ms Billed Duration: 5300 ms Memory Size: 512 MB Max Memory Used: 224 MB
Also tried:
const launchOptionForLambda = [
// error when launch(); No usable sandbox! Update your kernel
'--no-sandbox',
// error when launch(); Failed to load libosmesa.so
'--disable-gpu',
// freeze when newPage()
'--single-process',
'--disable-setuid-sandbox',
];
Doh... applied this change request to my code and it is working...
https://github.com/sambaiz/puppeteer-lambda-starter-kit/pull/26
Using the latest version (1.1.2), I am unable to get past
const page = await browser.newPage();
using an uploaded package.zipI have added some debugging to see what's going on and it doesn't dump anything to the AWS log.
I even went as far as downloading the @latest for every package used and am now trying to use Node 8.10 after changing the Babel version to Node 8.10.
My index starts off with:
The Amazon log is:
It's bailing out at
const page = await browser.newPage();
and never getting to dump outconsole.log('emulate screen');
. The catch is just aconsole.log(e)
for this try block.I've attempted to use various versions of chrome and the only variant response I've gotten is with this version: https://github.com/adieuadieu/serverless-chrome/releases/tag/v1.0.0-54
In which the log was: