awsmobile-cli
awsmobile-cli copied to clipboard
AWSMobile Init/Pull not working?
Hello there. I'm running to a weird issue with my project. When I try doing an awsmobile pull or init for my project, it does not work. This is the error message I am getting:
`awsmobile project's specifications logged at: awsmobilejs/#current-backend-info/mobile-hub-project.yml ⠧ downloading cloud-api lambda function codebases/usr/local/lib/node_modules/awsmobile-cli/node_modules/aws-sdk/lib/request.js:31 throw err; ^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at assertPath (path.js:39:11)
at Object.join (path.js:1157:7)
at Response.lambdaClient.getFunction (/usr/local/lib/node_modules/awsmobile-cli/lib/backend-operations/ops-cloud-api.js:160:46)
at Request.
I'm unsure what could have caused it. Can anyone give me some pointers on how to debug this? Many thanks!
I'm having issues exactly similar to this ticket: https://github.com/aws/awsmobile-cli/issues/144
We are investigating this issue. Please provide the following information
- node version
- awsmobile-cli version
- open your project's awsmobilejs/#current-backend-info/backend-details.json file, look for
AWS::Lambda::Function, see if there is an attribute namedconfigHandlerName, if yes, what is its value?
Node: v10.4.0 awsmobile-cli: 1.1.4
There's 2: "configHandlerName": "notify", "configHandlerName": "surveys"
Is it that for every AWS::Lambda::Function there's a configHandlerName attribute?
Or if there's one AWS::Lambda::Function that's missing the configHandlerName attribute?
There are three instances of AWS::Lambda::Function but only 2 has confighandlername