Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on SLS 2.23.0 #12

Open
Wintereise opened this issue Feb 10, 2021 · 1 comment
Open

Crash on SLS 2.23.0 #12

Wintereise opened this issue Feb 10, 2021 · 1 comment

Comments

@Wintereise
Copy link

Hi,

Been using this plugin for a long time now, but it appears 2.22+ crashes on bootstrap.

Serverless: Loading cloudside resources for 'api-staging' stack.
 
  Type Error ---------------------------------------------
 
  TypeError: this.serverless.getProvider(...).request(...).then(...).error is not a function
      at InvokeCloudside.loadCloudsideEnvVars (~/code/node_modules/serverless-cloudside-plugin/index.js:230:10)
      at InvokeCloudside.tryCatcher (~/code/node_modules/bluebird/js/release/util.js:16:23)
      at Promise._settlePromiseFromHandler (~/code/node_modules/bluebird/js/release/promise.js:547:31)
      at Promise._settlePromise (~/code/node_modules/bluebird/js/release/promise.js:604:18)
      at Promise._settlePromiseCtx (~/code/node_modules/bluebird/js/release/promise.js:641:10)
      at _drainQueueStep (~/code/node_modules/bluebird/js/release/async.js:97:12)
      at _drainQueue (~/code/node_modules/bluebird/js/release/async.js:86:9)
      at Async._drainQueues (~/code/node_modules/bluebird/js/release/async.js:102:5)
      at Immediate.Async.drainQueues [as _onImmediate] (~/code/node_modules/bluebird/js/release/async.js:15:14)
      at processImmediate (internal/timers.js:461:21)

It can't find error, but it can find catch (

}).error(e => {
)

I made the change, and it works fine now. Just a heads up for anyone else running into this.

@Wintereise
Copy link
Author

PR raised by Piotr from the SLS team fixes this - #13

@jeremydaly Can you please give it a look over and merge when you have a moment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant