Hi All,
We’re trying to deploy another instance of a service that has worked fine for a couple of years and the deployment appears to work fine except serverless reports it as a failed deployment. We think it’s an issue with variables but are having real trouble pinpointing what the problem is… This is an aws service deploying a cognito user pool along with HttpApi services to work with cognito.
Everything appears to be setup ok and cloudformation reports success but when serverless has finished it’s cloudformation part it fails with the following…
DELETE_SKIPPED - AWS::Lambda::Version - GetCurrentVersionLambdaVersionxxxxxxxxxxxxxxx
UPDATE_COMPLETE - AWS::CloudFormation::Stack - xxxx-service-production
Running command: null
× Stack xxxx-service-production failed to deploy (129s)
Publishing service to the Serverless Dashboard…
Successfully published your service to the Serverless Dashboard: Serverless
Environment: win32, node 14.18.0, framework 3.26.0, plugin 6.2.2, SDK 4.3.2
Credentials: Serverless Dashboard, “main” provider (Serverless)
[SNIPPED the links this forum won’t let me post]
Error:
TypeError [ERR_INVALID_ARG_TYPE]: The “file” argument must be of type string. Received null
at new NodeError (internal/errors.js:322:7)
at validateString (internal/validators.js:124:11)
at normalizeSpawnArguments (child_process.js:486:3)
at spawnSync (child_process.js:735:8)
at execSync (child_process.js:858:15)
at C:\Users[redacted]\AppData\Roaming\npm\node_modules\serverless\node_modules\cli-progress-footer\lib\private\cli-progress-footer\disable-props.js:87:41
at handleSubProcessSync (C:\Users[redacted]\AppData\Roaming\npm\node_modules\serverless\node_modules\cli-progress-footer\lib\private\cli-progress-footer\disable-props.js:33:15)
at childProcess.execSync (C:\Users[redacted]\AppData\Roaming\npm\node_modules\serverless\node_modules\cli-progress-footer\lib\private\cli-progress-footer\disable-props.js:86:11)
at Scriptable.runCommand (C:\Users[redacted]\Documents\Serverless\xxxx-service\node_modules\serverless-scriptable-plugin\index.js:70:12)
at C:\Users[redacted]\Documents\Serverless\xxxx-service\node_modules\serverless-scriptable-plugin\index.js:60:21
at tryCatcher (C:\Users[redacted]\Documents\Serverless\xxxx-service\node_modules\bluebird\js\release\util.js:16:23)
at Object.gotValue (C:\Users[redacted]\Documents\Serverless\xxxx-service\node_modules\bluebird\js\release\reduce.js:166:18)
at Object.gotAccum (C:\Users[redacted]\Documents\Serverless\xxxx-service\node_modules\bluebird\js\release\reduce.js:155:25)
at Object.tryCatcher (C:\Users[redacted]\Documents\Serverless\xxxx-service\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users[redacted]\Documents\Serverless\xxxx-service\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (C:\Users[redacted]\Documents\Serverless\xxxx-service\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromiseCtx (C:\Users[redacted]\Documents\Serverless\xxxx-service\node_modules\bluebird\js\release\promise.js:641:10)
at _drainQueueStep (C:\Users[redacted]\Documents\Serverless\xxxx-service\node_modules\bluebird\js\release\async.js:97:12)
at _drainQueue (C:\Users[redacted]\Documents\Serverless\xxxx-service\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (C:\Users[redacted]\Documents\Serverless\xxxx-service\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users[redacted]\Documents\Serverless\xxxx-service\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:464:21)
The original service was deployed with v2 but we’re being forced to deploy now with v3 as we can’t get serverless v2.7 working at all it seems
The smoking gun is obviously…
Running command: null
and
TypeError [ERR_INVALID_ARG_TYPE]: The “file” argument must be of type string. Received null
at new NodeError (internal/errors.js:322:7)
But we have no clue what that’s referring to and not sure how to find out.
Any help or pointers would be greatly appreciated.