I successfully deployed an AWS Lambda via serverless this morning.
At some point today serverless suggested updating to 1.47.0, which I did.
This afternoon any deployment attempt is failing with the following error message and stacktrace:
Serverless Enterprise: Safeguards Processing...
Serverless Enterprise: Publishing service to the Enterprise Dashboard...
Serverless: [AWS sts 200 0.298s 0 retries] getCallerIdentity({})
Serverless: [AWS cloudformation 200 0.271s 0 retries] describeStacks({ StackName: 'selenium-lambda-prod' })
Serverless Enterprise: Successfully published your service to the Enterprise Dashboard: https://dashboard.serverless.com/tenants/testflyjets/applications/xxx/services/selenium-lambda/stage/prod/region/us-west-2
Type Error ---------------------------------------------
Object.getOwnPropertyDescriptors is not a function
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Stack Trace --------------------------------------------
TypeError: Object.getOwnPropertyDescriptors is not a function
at _objectSpread (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/dist/lib/safeguards/index.js:20:525)
at /Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/src/lib/safeguards/index.js:53:38
at Array.map (native)
at map (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/src/lib/safeguards/index.js:53:34)
at tryCatch (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/regenerator-runtime/runtime.js:45:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/regenerator-runtime/runtime.js:271:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/regenerator-runtime/runtime.js:97:21)
at asyncGeneratorStep (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/dist/lib/safeguards/index.js:32:103)
at _next (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/dist/lib/safeguards/index.js:34:194)
at /Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/dist/lib/safeguards/index.js:34:364
at /Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/dist/lib/safeguards/index.js:34:97
at _runPolicies (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/dist/lib/safeguards/index.js:285:23)
at runPolicies (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/dist/lib/safeguards/index.js:44:23)
at _callee$ (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/src/lib/plugin.js:209:17)
at tryCatch (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/regenerator-runtime/runtime.js:45:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/regenerator-runtime/runtime.js:271:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/regenerator-runtime/runtime.js:97:21)
at asyncGeneratorStep (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/dist/lib/plugin.js:50:103)
at _next (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/dist/lib/plugin.js:52:194)
at /Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/dist/lib/plugin.js:52:364
at ServerlessEnterprisePlugin.<anonymous> (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/@serverless/enterprise-plugin/dist/lib/plugin.js:52:97)
at BbPromise.reduce (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/lib/classes/PluginManager.js:464:55)
From previous event:
at PluginManager.invoke (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/lib/classes/PluginManager.js:464:22)
at PluginManager.run (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/lib/classes/PluginManager.js:496:17)
at variables.populateService.then (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/lib/Serverless.js:116: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/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/lib/Serverless.js:103:74)
at serverless.init.then (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/bin/serverless.js:44:32)
at /Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/graceful-fs/graceful-fs.js:111:16
at /Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/node_modules/graceful-fs/graceful-fs.js:45:10
at FSReqWrap.oncomplete (fs.js:123:15)
From previous event:
at initializeErrorReporter.then (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/bin/serverless.js:44:10)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at __dirname (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/bin/serverless.js:30:6)
at Object.<anonymous> (/Users/chrismccann/.nvm/versions/node/v6.11.2/lib/node_modules/serverless/bin/serverless.js:71:7)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:504:3
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
OS: darwin
Node Version: 6.11.2
Serverless Version: 1.47.0
I downgraded to 1.46 to see if that would fix it but no luck. Does anyone have suggestions on how to dive deeper into this or fix it?
Thanks,
Chris