Questions tagged [aws-lambda-puppeteer]

5 questions
3
votes
1 answer

chrome-aws-lambda + lighthouse always results in Error: connect ECONNREFUSED 127.0.0.1:9222

Dockerfile FROM public.ecr.aws/lambda/nodejs:12 COPY index.js package.json /var/task/ RUN npm install --save-prod CMD [ "index.handler" ] package.json { "name": "lighthouse2", "version": "1.0.0", "description": "", "main":…
2
votes
2 answers

AWS Lambda event.body parsing error in production

I am using https://github.com/ARautio/aws-lambda-pdf-generator-puppeteer to create pdfs serverlessly. I have made some changes to get html to process as POST data. I ran command: yarn deploy:prod to deploy it on aws lambda. After deploying, when i…
2
votes
2 answers

Unable to create latest headless chrome for AWS Lambda

I have required to use the latest headless chrome with puppeteer on AWS Lambda and for that, I have referred: https://github.com/adieuadieu/serverless-chrome/blob/master/docs/chrome.md. I already tried all the following approch to create headless…
2
votes
1 answer

Base64 to Pdf export issue AWS Lambda

I'm creating pdf document using AWS Lambda Puppeteer Nodejs package. const page = await browser.newPage() page.setContent(html) const pdf = await page.pdf({ format: 'A4', printBackground: true, margin: { top: '1cm', right: '1cm', bottom:…
Atul Sharma
  • 9,397
  • 10
  • 38
  • 65
1
vote
1 answer

puppeteer chromium dynamic js content

Trying to scrape a website trough lambda. It loads fine, loads chromium and puppeteer. However whenever there should be additional content loaded trough third party JS script. For example a plugin example.js renders advertisements to