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
I would like to use your 'serverless-chrome' npm package to run Google lighthouse on a Lambda instance.
Locally it's working perfectly, but after deploying I get the following error, when I call my Lambda function:
{
"errorType": "Error",
"errorMessage": "spawn /var/task/node_modules/@serverless-chrome/lambda/dist/headless-chromium EACCES",
"trace": [
"Error: spawn /var/task/node_modules/@serverless-chrome/lambda/dist/headless-chromium EACCES",
" at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)",
" at onErrorNT (internal/child_process.js:469:16)",
" at processTicksAndRejections (internal/process/task_queues.js:84:21)"
]
}
'Issues with incorrect permissions are common for packages generated by continuous integration applications. If the security permissions set for your Lambda deployment package .zip or .jar file are incorrect, you get an error when you try to upload the file. Lambda requires global read permissions on code files and any dependent libraries in your deployment package.'
I'm not working on Linux, so I can't try the suggested fix. If you have a solution for this, please let me know.
The text was updated successfully, but these errors were encountered:
Headless Chrome running on AWS Lambda with Google lighthouse
Thank you for your detailed blog post about headless Chrome running on AWS Lambda.
https://medium.com/@marco.luethy/running-headless-chrome-on-aws-lambda-fa82ad33a9eb
I would like to use your 'serverless-chrome' npm package to run Google lighthouse on a Lambda instance.
Locally it's working perfectly, but after deploying I get the following error, when I call my Lambda function:
According to the AWS docs, this problem occurs when files don't have the required permissions set.
https://aws.amazon.com/premiumsupport/knowledge-center/lambda-deployment-package-errors/
'Issues with incorrect permissions are common for packages generated by continuous integration applications. If the security permissions set for your Lambda deployment package .zip or .jar file are incorrect, you get an error when you try to upload the file. Lambda requires global read permissions on code files and any dependent libraries in your deployment package.'
I'm not working on Linux, so I can't try the suggested fix. If you have a solution for this, please let me know.
The text was updated successfully, but these errors were encountered: