shawnliujw / puppeteer-lambda

Module for using Headless-Chrome by Puppeteer on AWS Lambda.
MIT License
117 stars 20 forks source link

Unzipped size must be smaller than xxxxxbytes #7

Closed KrifaYounes closed 5 years ago

KrifaYounes commented 5 years ago

I try to deploy my lambda project with puppeteer-lambda, it's ok in local but it failed when I deploy on aws:

An error occurred: ConvertToPdfLambdaFunction - Unzipped size must be smaller than 262144000 bytes (Service: AWSLambda; Status Code: 400; Error Code: InvalidParameterValueException
I use this command for deployment : 

PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true && yarn install && yarn test && SLS_DEBUG=* yarn build && serverless deploy --stage dev

have you an idea how to fix that ?

shawnliujw commented 5 years ago

please add CUSTOM_CHROME=true , the command should like PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true CUSTOM_CHROME=true yarn add puppeteer-lambda

shawnliujw commented 5 years ago

@KrifaYounes does it work for you now ?