Comments (5)
Removing the two items in serverless.yml
which rely on the handler in versionInfo.js
allowed me to build/deploy the others; will dig in a bit more later tonight/this week
momer@ubuntuk:~/aws$ SLS_DEBUG=* serverless deploy -v -f request-logger
Serverless: Injecting Headless Chrome...
Error --------------------------------------------------
ENOENT: no such file or directory, unlink '/home/momer/aws/.build/src/versionInfo.js'
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Stack Trace --------------------------------------------
Error: ENOENT: no such file or directory, unlink '/home/momer/aws/.build/src/versionInfo.js'
at Error (native)
From previous event:
at PluginManager.invoke (/home/momer/.npm-global/lib/node_modules/serverless/lib/classes/PluginManager.js:217:22)
at PluginManager.spawn (/home/momer/.npm-global/lib/node_modules/serverless/lib/classes/PluginManager.js:229:17)
at Deploy.BbPromise.bind.then.then (/home/momer/.npm-global/lib/node_modules/serverless/lib/plugins/deploy/deploy.js:101:50)
From previous event:
at Object.before:deploy:deploy [as hook] (/home/momer/.npm-global/lib/node_modules/serverless/lib/plugins/deploy/deploy.js:99:10)
at BbPromise.reduce (/home/momer/.npm-global/lib/node_modules/serverless/lib/classes/PluginManager.js:217:55)
From previous event:
at PluginManager.invoke (/home/momer/.npm-global/lib/node_modules/serverless/lib/classes/PluginManager.js:217:22)
at PluginManager.run (/home/momer/.npm-global/lib/node_modules/serverless/lib/classes/PluginManager.js:236:17)
at variables.populateService.then (/home/momer/.npm-global/lib/node_modules/serverless/lib/Serverless.js:107:33)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at Serverless.run (/home/momer/.npm-global/lib/node_modules/serverless/lib/Serverless.js:94:74)
at serverless.init.then (/home/momer/.npm-global/lib/node_modules/serverless/bin/serverless:32:50)
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Forums: forum.serverless.com
Chat: gitter.im/serverless/serverless
Your Environment Information -----------------------------
OS: linux
Node Version: 6.11.1
Serverless Version: 1.17.0
from serverless-chrome.
Hi @momer thank you for trying out serverless-chrome! What you've encountered isn't so much an issue/bug but rather just in-progress development. The examples in the develop branch haven't been fully migrated to make use of the npm package and serverless plugin and don't work just yet. Stick to the master branch for working examples, or take a look at the example for using the Serverless plugin here.
Sorry that the examples aren't ready yet! They will be, soon.
from serverless-chrome.
@adieuadieu No worries man, thank you for your work on this; I've started playing with and learning serverless/webpack/babel.
Super excited
from serverless-chrome.
@adieuadieu When I try to implement the example linked in your comment above I am getting the following error:
Serverless plugin "serverless-plugin-chrome" not found. Make sure it's installed and listed in the "plugins" section of your serverless config file.
I have this in my serverless.yml
:
plugins:
- serverless-plugin-chrome
custom:
chrome:
functions:
- streamFunction
In package.json
:
"devDependencies": {
"chrome-launcher": "^0.8.1",
"serverless": "^1.23.0",
"serverless-plugin-chrome": "^1.0.0-11"
},
"dependencies": {
"aws-sdk": "^2.133.0"
}
Using Yarn v1.2.1 and Serverless framework v1.23.0
from serverless-chrome.
Hey @adieuadieu, trying to upload the example from the develop
branch as well and get the following stack trace error
TypeError: Path must be a string. Received undefined
at assertPath (path.js:7:11)
at Object.basename (path.js:1355:5)
at /Users/sergiy/dev/ruutly/ruutly-share-aws/examples/serverless-framework/aws/node_modules/serverless-plugin-chrome/dist/index.js:196:116
at Generator.next (<anonymous>)
at step (/Users/sergiy/dev/ruutly/ruutly-share-aws/examples/serverless-framework/aws/node_modules/serverless-plugin-chrome/dist/index.js:58:194)
at /Users/sergiy/dev/ruutly/ruutly-share-aws/examples/serverless-framework/aws/node_modules/serverless-plugin-chrome/dist/index.js:58:367
From previous event:
at PluginManager.invoke (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/classes/PluginManager.js:360:22)
at PluginManager.spawn (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/classes/PluginManager.js:378:17)
at Deploy.BbPromise.bind.then.then (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/plugins/deploy/deploy.js:117:50)
From previous event:
at Object.before:deploy:deploy [as hook] (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/plugins/deploy/deploy.js:107:10)
at BbPromise.reduce (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/classes/PluginManager.js:360:55)
From previous event:
at PluginManager.invoke (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/classes/PluginManager.js:360:22)
at PluginManager.run (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/classes/PluginManager.js:391:17)
at variables.populateService.then (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/Serverless.js:99:33)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at Serverless.run (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/Serverless.js:86:74)
at serverless.init.then (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/bin/serverless:39:50)
from serverless-chrome.
Related Issues (20)
- Error: Unable to start Chrome HOT 6
- 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
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.