serverless: Can't deploy with master branch: "Cannot read property 'endsWith' of null"
This is a Bug Report
Description
Installed from master branch (needed to pull in https://github.com/serverless/serverless/pull/2014), and serverless deploy no longer works. I get the error “Cannot read property ‘endsWith’ of null”.
This happens with full Admin AWS credentials on the hello-world project created by serverless create --template aws-nodejs
For bug reports:
- What went wrong?
- What did you expect should have happened?
- What was the config you used?
- What stacktrace or error message from your provider did you see?
Additional Data
- _Serverless Framework Version you’re using_: 1.0.2
- _Operating System_: Ubuntu 14
- _Stack Trace_: below
- _Provider Error messages_: none
$ SLS_DEBUG=true serverless deploy -v
Serverless: Packaging service...
Serverless: Removing old service versions...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading service .zip file to S3...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
Serverless Error ---------------------------------------
Cannot read property 'endsWith' of null
Stack Trace --------------------------------------------
ServerlessError: Cannot read property 'endsWith' of null
at sdk.request.then.catch (/home/ubuntu/.npm-global/lib/node_modules/serverless/lib/plugins/aws/lib/monitorStack.js:97:26)
at tryCatcher (/home/ubuntu/.npm-global/lib/node_modules/serverless/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/ubuntu/.npm-global/lib/node_modules/serverless/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/home/ubuntu/.npm-global/lib/node_modules/serverless/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/home/ubuntu/.npm-global/lib/node_modules/serverless/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/home/ubuntu/.npm-global/lib/node_modules/serverless/node_modules/bluebird/js/release/promise.js:687:18)
at Async._drainQueue (/home/ubuntu/.npm-global/lib/node_modules/serverless/node_modules/bluebird/js/release/async.js:138:16)
at Async._drainQueues (/home/ubuntu/.npm-global/lib/node_modules/serverless/node_modules/bluebird/js/release/async.js:148:10)
at Immediate.Async.drainQueues (/home/ubuntu/.npm-global/lib/node_modules/serverless/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:574:20)
at tryOnImmediate (timers.js:554:5)
at processImmediate [as _immediateCallback] (timers.js:533:5)
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Your Environment Infomation -----------------------------
OS: linux
Node Version: 6.7.0
Serverless Version: 1.0.2
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (13 by maintainers)
Downgrading seems to work
I upgraded from 1.0.2 to 1.0.3 today and ran into this issue on OSX.
Serverless Framework Version you’re using: 1.0.3 Operating System: OSX 10.11.6 Stack Trace: below Provider Error messages: below
@robertoestivill Tomorrow. We’re releasing every two weeks on Wednesday going forward. Part of this release will be a blogpost explaining that.
Thanks for reporting and helping to fix it! 👯
#2576 is merged into master and resolves this bug 🎉
I am also facing this issue:
FWIW I wasn’t able to reproduce on OSX, just on Ubuntu 14.04.