Skip to content

Crash on SLS 2.23.0 #12

Description

@Wintereise

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions