17 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
82
views
Custom Font Not Applying in Puppeteer browser on Firebase Functions
I'm using puppeteer-core with chrome-aws-lambda in a Firebase Cloud Function to scrape a webpage and apply a custom font. However, despite injecting the @font-face rule via page.addStyleTag, the font ...
7
votes
2
answers
1k
views
Chromium issue with Error initializing NSS with a peristent database NSS error code: -8023
We wrote a Print PDF lambda function generates a PDF file using puppeteer from HTML content sent to it in the SQS message. It is deployed as a lambda in aws. The function also allows uploading of ...
2
votes
2
answers
3k
views
Puppeteer in AWS Lambda - Missing libnss3.so Library
Issue with Puppeteer in AWS Lambda - Missing libnss3.so Library
I am trying to run Puppeteer on AWS Lambda using the chrome-aws-lambda package. However, I'm encountering an error related to a missing ...
0
votes
1
answer
967
views
Puppet: Navigation failed because browser has disconnected
We have written a Print PDF lambda function that generates a PDF file using puppeteer from HTML content.
The lambda function uses the packages chrome-aws-lambda and puppeteer-core to generate PDF ...
0
votes
1
answer
235
views
Cannot use puppeteer because it fails loading yargs/yargs dependency
I'm trying to run a chromium browser on my AWS Lambda (node.js). This is the code I'm using
import chromium from 'chrome-aws-lambda';
...
const browser = await chromium.puppeteer.launch({
args:...
0
votes
0
answers
2k
views
Cannot find module '/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser
I was trying to run Puppeteer on an AWS Lambda function and got the following error.
Error: Error: Cannot find module '/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser'
This has ...
0
votes
1
answer
180
views
How AWS Lambda allocates CPU when concurrent lambda invoked?
I have one lambda function to test the URLs using puppeteer and chrome.
When I invoke 50 lambdas at the same time chrome is not able to load all the passed URLs.
What could be the reason for it?
I ...
6
votes
1
answer
2k
views
Puppeteer 16.1.1 not working with chrome-aws-lambda 10.1.0 version
I am using puppeteer and chrome-aws-lambda to generate pdf in AWS Lambda, till recently it was working with nodejs 12.x, puppeteer v13.7.0 and chrome-aws-lambda v10.1.0.
Recently we updated nodejs to ...
4
votes
0
answers
1k
views
Puppeteer core not executing chromium binary from @sparticuz/chrome-aws-lambda
Trying to run puppeteer-core & @sparticuz/chrome-aws-lambda on a lambda function.
Error: Failed to launch the browser process!\n/tmp/chromium: /tmp/chromium: cannot execute binary file\n\n\...
1
vote
0
answers
380
views
The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. UPLOADING PDF Buffer to S3
I'm trying to upload a PDF generated with chrome-aws-lambda in production and puppeteer in local. It works in local. But send the error of the title in production.
These are the params of presignedS3.
...
2
votes
0
answers
530
views
Serverless Function looking for node_modules inside function directory instead of node_modules directory
I have created a serverless function for generating PDF, and I am using chrome-aws-lambda with puppeteer-core. But when I call chromium.puppeteer.launch, it throws following error:
Cannot find module '...
2
votes
1
answer
6k
views
How to use chrome-aws-lambda module with AWS lambda functions?
I am trying to generate pdf from HTML using chrome-aws-lambda by node.js lambda function.
I created a Layer using this manual. Also, I tried to use existing layer with my function but I always get an ...
3
votes
0
answers
1k
views
puppeteer very slow to launch on AWS Lambda in production
I have been working on this feature for work where we need to convert some html into pdf. So I'm using chrome-aws-lambda and puppeteer-core like in the most tutorials anyone can find online.
https://...
1
vote
1
answer
2k
views
How to increase memory available for chromium in chrome-aws-lambda?
I collect the data using puppeteer and chrome-aws-lambda. I plan to push it to AWS Lambda but while testing locally I get an error:
Error: Protocol error (Runtime.callFunctionOn): Target closed.
when ...
1
vote
0
answers
1k
views
How to use chrome-aws-lambda for generating pdf from html in AWS lambda functions?
I was using puppeteer for generating pdf from html. It worked as expected in local machine. But on deploying to AWS lambda, we found that it will exceed the size limit of 250MB set by AWS for lambda ...