Comments (9)
👍 I'll close this out now.
Ps. I've got a PR coming your way for another small bugfix.
from serverless-chrome.
Hi @benjaminwood,
Hm.. That's a weird/unexpected error. I haven't had a chance to thoroughly test the plugin together with serverless-offline
, so can't say that it should work. I wouldn't entirely be surprised if it didn't. The serverless-chrome plugin currently only somewhat lazily hooks into the serverless-offline
hooks. However, you shouldn't be getting the error you're seeing.
Would you be able to share your code? Specifically of interest is your package.json
and the handler code (you can omit any business logic.)
from serverless-chrome.
Hey @adieuadieu thanks for the quick response! I just recreated the problem in a simpler scenario.
It appears that I either have an issue with my environment (likely?) or there is a problem with the package. I just went through the following:
mkdir test
cd test
yarn add --dev serverless-plugin-chrome
node -e "require('serverless-plugin-chrome')"
I can install and require other packages this way, but not serverless-plugin-chrome
. Strange huh?
from serverless-chrome.
Ah.
I just published a new version to NPM. Could upgrade serverless-plugin-chrome
and try again?
Also, just to clarify: You don't need to include serverless-plugin-chrome
directly into your code. Adding it to serverless.yml
's plugins
section should be all you need to do (besides yarn/npm installing it.)
from serverless-chrome.
Funny! I was just poking around in package.json and noticed dist/index.cjs.js
.
I see the change you made, and I suspect this is the problem I'm running into. However, there is no dist
directory in the new version. Perhaps you forgot to include it in the new package/version?
Regarding requiring serverless-plugin-chrome
, I was only requiring it manually to see if I could recreate the issue outside of serverless, serverless-offline, etc.
from serverless-chrome.
Hm.. Looks like I ran into this issue with NPM. Just published a new new version.
from serverless-chrome.
It works!!!
from serverless-chrome.
Thanks for your help and thanks again for your work on this project. Are you on gitter chat or anything similar?
from serverless-chrome.
Great! Glad to hear it works for you now. I'm occasionally on Gitter, but not very active.
from serverless-chrome.
Related Issues (20)
- Unable to run selenium in AWS Lambda with Python 3.8 HOT 4
- Circle CI broken on upload release to github HOT 1
- Release 1.0.0-70 HOT 2
- serverless-chrome gets incomplete source in Lambda HOT 2
- unicode characters are displayed as boxes in the generated pdf
- FATAL:zygote_communication_linux.cc(254)] Cannot communicate with zygote HOT 1
- latest version (1.0.0-70) not available on npm HOT 6
- WebDriverException: Message: Service /opt/chromedriver unexpectedly exited. Status code was: 127 HOT 6
- execute_cdp_cmd not working with serverless-chrome
- Uploaded file must be a non-empty zip (Service: Lambda, Status Code: 400
- ENOENT error
- Lambda AWS - Error: connect ECONNREFUSED 127.0.0.1:9222 HOT 6
- Failed to load GLES library with the latest prebuild binary HOT 2
- /opt/chromedriver unexpectedly exited. Status code was 127\n HOT 3
- Why isnt new 2022 versions of headless-chrome? HOT 3
- Update to Python 3.9 HOT 1
- [QUESTION] Difference between serverless-plugin-chrome vs @sparticuz/chromium
- Which chrome driver version to use for v1.0.0-57 HOT 1
- Cleanup non issue
- Installing ChromeDriver and Headless Chrome Driver with latest version of Selenium HOT 2
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 serverless-chrome.