Comments (6)
Hi @danteata, altought the repository is new (and might change name[space]), I've been running these binaries in AWS Lambda successfully for quite some time, I just ran the example code in the README and the CloudWatch logs output a successful decompression of the binary:
chrome-aws-lambda Inflating 'chromium.br'.
chrome-aws-lambda Finished inflating 'chromium.br' into '/tmp/chromium'.
I also get the correct output from Lambda ("Example Domain"
).
As you can see on:
I'm using the appropriate AMI image and the binary is also statically linked.
I assume you have transpiled your code to run Node 6.10 using Babel or similar?
from chrome-aws-lambda.
@alixaxel confirmed, my codebase is transpiled to run Node 6.10 via Babel. Could that be the reason? Thanks for the quick reply.
from chrome-aws-lambda.
It's unlikely as I'm doing the same.
Would you mind sharing some more details so we can get to the bottom of this issue? As I mentioned, the example code works just as expected, so I'm out of ideas with what I know.
from chrome-aws-lambda.
How much memory have you given to your Lambda?
from chrome-aws-lambda.
@alixaxel it strangely started working ok without any further updates to the deploy. I allocated ~1GB of memory.
from chrome-aws-lambda.
Closing as it seems to be resolved.
from chrome-aws-lambda.
Related Issues (20)
- [BUG] Screenshots are only getting inline styles, no css HOT 1
- [BUG] Is this project dead? No node16 support? HOT 1
- [BUG] Failed to launch the browser process!\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md\n", HOT 26
- Warning: Max serverless function size of 50 MB compressed or 250 MB uncompressed reached
- [REQUEST] Implement puppeteer-extra-plugin-stealth HOT 3
- [BUG] Images are not rendering in img tag or background-img HOT 6
- [REQUEST] Load chromium.font after launching Chromium
- [BUG] Why is puppeteer-core needed?
- [BUG] Cannot find module ...node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser' HOT 2
- Can't run Puppeteer in AWS Lambda. HOT 10
- [BUG] Error: Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (901912).
- How can we implement x-ray?
- [REQUEST] ARM support on lambda HOT 2
- [BUG] Does Not Work With Node 16 or 18 HOT 10
- [BUG] runtime.unhandledpromiserejection
- [BUG] - Scrolling doesn't work in AWS Lambda HOT 1
- Module parse failed: Unexpected token (1:10) HOT 4
- Feature Request: Update Puppeteer & Chromium Packages to Latest Versions HOT 2
- [BUG] libnss3.so: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: HOT 1
- Error: An \`executablePath\` or \`channel\` must be specified for \`puppeteer-core\` in AWS Lambda using chrome-aws-lambda
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-aws-lambda.