Debugging Serverless API Issues

Sure! Just to confirm I got no serverless.yml in the notes-app-client project, is that ok? I checked if I skipped any command from the guide but the commands I saw for installing packages was:

npx create-react-app notes-app-client
npm install react-bootstrap --save
npm install react-router-dom --save
npm install react-router-bootstrap --save
npm install aws-amplify --save

Here is the serverless.yml from notes-app-api project:

service: notes-app-api

#Use the serverless-webpack plugin to transpile ES6
plugins:

  • serverless-webpack
  • serverless-offline

#serverless-webpack configuration
#Enable auto-packing of external modules
custom:
webpack:
webpackConfig: ./webpack.config.js
includeModules: true

provider:
name: aws
runtime: nodejs8.10
stage: prod
region: us-east-2

#‘iamRoleStatements’ defines the permission policy for the Lambda function.
#In this case Lambda functions are granted with permissions to access DynamoDB.
iamRoleStatements:
- Effect: Allow
Action:
- dynamodb:DescribeTable
- dynamodb:Query
- dynamodb:Scan
- dynamodb:GetItem
- dynamodb:PutItem
- dynamodb:UpdateItem
- dynamodb:DeleteItem
Resource: “arn:aws:dynamodb:us-east-2::

functions:
#Defines an HTTP API endpoint that calls the main function in create.js
#- path: url path is /notes
#- method: POST request
#- cors: enabled CORS (Cross-Origin Resource Sharing) for browser cross
#domain api call
#- authorizer: authenticate using the AWS IAM role
create:
handler: create.main
events:
- http:
path: notes
method: post
cors: true
authorizer: aws_iam

get:
# Defines an HTTP API endpoint that calls the main function in get.js
# - path: url path is /notes/{id}
# - method: GET request
handler: get.main
events:
- http:
path: notes/{id}
method: get
cors: true
authorizer: aws_iam

list:
# Defines an HTTP API endpoint that calls the main function in list.js
# - path: url path is /notes
# - method: GET request
handler: list.main
events:
- http:
path: notes
method: get
cors: true
authorizer: aws_iam
update:
# Defines an HTTP API endpoint that calls the main function in update.js
# - path: url path is /notes/{id}
# - method: PUT request
handler: update.main
events:
- http:
path: notes/{id}
method: put
cors: true
authorizer: aws_iam

delete:
# Defines an HTTP API endpoint that calls the main function in delete.js
# - path: url path is /notes/{id}
# - method: DELETE request
handler: delete.main
events:
- http:
path: notes/{id}
method: delete
cors: true
authorizer: aws_iam

“I just took out the space between the # and the start of the comment for post legibility.”

Hmm the formatting for the serverless.yml seems messed up. Is that because of how you copy and pasted it here?

Yes. I went back and checked if the file I used for the API deployment was the same that the guide suggests. Identation in the previous post is not looking good but in the file I used is ok, all identation matches with the guide. Serverless methods called with serverless invoke work too.

So to recap; your logs are not showing up right? I’m assuming the test we did back in this chapter - https://serverless-stack.com/chapters/test-the-apis.html work for you?

If so, can we ensure that logging is setup correctly by adding some console.log to create.js and trigger the API through the CLI? Let’s make sure we have that working correctly.

After running that command I get this:

diego@ubuntu:~/Documents/notes-app-api$ sudo npx aws-api-gateway-cli-test --username='admin@example.com' --password='Passw0rd!' --user-pool-id='us-east-2_waTsT0ZBe' --app-client-id='6f7e156751aqf3sc4hkjh6dfn1' --cognito-region='us-east-2' --identity-pool-id='us-east-2:a0250e10-b494-4f38-b296-19d085adaa3d' --invoke-url='CORRECT-API-URL' --api-gateway-region='us-east-2' --path-template="notes" --method='POST' --body='{"content":"hello world","attachment":"hello.jpg"}'
[sudo] password for diego: 
npx: installed 105 in 314.77s
Authenticating with User Pool
Getting temporary credentials
Making API request
/home/diego/.npm/_npx/29161/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/request.js:31
            throw err;
            ^

TypeError: Cannot read property '1' of null
    at Object.apigClientFactory.newClient (/home/diego/.npm/_npx/29161/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-api-gateway-client/dist/apigClient.js:66:57)
    at makeRequest (/home/diego/.npm/_npx/29161/lib/node_modules/aws-api-gateway-cli-test/index.js:157:38)
    at /home/diego/.npm/_npx/29161/lib/node_modules/aws-api-gateway-cli-test/index.js:150:5
    at /home/diego/.npm/_npx/29161/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/credentials.js:123:23
    at Response.<anonymous> (/home/diego/.npm/_npx/29161/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/credentials/cognito_identity_credentials.js:258:7)
    at Request.<anonymous> (/home/diego/.npm/_npx/29161/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/request.js:364:18)
    at Request.callListeners (/home/diego/.npm/_npx/29161/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
    at Request.emit (/home/diego/.npm/_npx/29161/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
    at Request.emit (/home/diego/.npm/_npx/29161/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/request.js:683:14)
    at Request.transition (/home/diego/.npm/_npx/29161/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/request.js:22:10)

Couldn’t post the url before, CORRECT-API-URL is without the period before the colon “:” “https.://vipxx07lin.execute-api.us-east-2.amazonaws.com/prod”

I got
node version 8.10.0
serverless version 1.27.3
Python version 2.7.15rc1
npx version 10.2.0
OS ubuntu 18.04

Hmm just from the command I see that your --path-template='notes' while in the tutorial it is --path-template='/notes'. Can you double check your command?

Sure! I actually had it with double quotes, but then I tried it as it is in the guide ‘/notes’ but got the same error message. While running the command there are some messages in console that pass rapidly and are not captured unless you use this command:

script screen.log

The page doesn’t let me upload files other than images nor paste more than 32000 characters so I’ll paste it in 2 parts here:

 Script started on 2018-07-22 18:12:19-0600
e]0;diego@ubuntu: ~/Documents/notes-app-apiae[01;32mdiego@ubuntue[00m:e[01;34m~/Documents/notes-app-apie[00m$ exitsudo npx aws-api-gateway-cli-test --username='admin@
@example.com' --password='Passw0rd!' --user-pool-id='us-east-2_waTsT0ZBe' --app-client-id='6
6f7e156751aqf3sc4hkjh6dfn1' --cognito-region='us-east-2' --identity-pool-id='us-east-2:a0250
0e10-b494-4f38-b296-19d085adaa3d' --invoke-url='/https://vipxx07lin.execute-api.us-east-2.am
mazonaws.com/prod' --api-gateway-region='us-east-2' --path-template='/notes' --method='POST'
' --body='{"content":"hello world","attachment":"hello.jpg"}' &> LOGDI.txte[1P
[sudo] password for diego: 
e[?25l[e[90m..................e[0m] / rollbackFailedOptional: e[34;40mverbe[0m e[35mnpm-sessione[0m e60c224532b97edde[0me[K
[e[90m..................e[0m] / rollbackFailedOptional: e[34;40mverbe[0m e[35mnpm-sessione[0m e60c224532b97edde[0me[K
[e[90m..................e[0m] / rollbackFailedOptional: e[34;40mverbe[0m e[35mnpm-sessione[0m e60c224532b97edde[0me[K
[e[90m..................e[0m] / rollbackFailedOptional: e[34;40mverbe[0m e[35mnpm-sessione[0m e60c224532b97edde[0me[K
[e[90m..................e[0m] / rollbackFailedOptional: e[34;40mverbe[0m e[35mnpm-sessione[0m e60c224532b97edde[0me[K
[e[90m..................e[0m] / rollbackFailedOptional: e[34;40mverbe[0m e[35mnpm-sessione[0m e60c224532b97edde[0me[K
[e[90m..................e[0m] / rollbackFailedOptional: e[34;40mverbe[0m e[35mnpm-sessione[0m e60c224532b97edde[0me[K
[e[90m..................e[0m] / rollbackFailedOptional: e[34;40mverbe[0m e[35mnpm-sessione[0m e60c224532b97edde[0me[K
[e[90m..................e[0m] / rollbackFailedOptional: e[34;40mverbe[0m e[35mnpm-sessione[0m e60c224532b97edde[0me[K
[e[90m..................e[0m] \ rollbackFailedOptional: e[34;40mverbe[0m e[35mnpm-sessione[0m e60c224532b97edde[0me[K
[e[90m..................e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m aws-api-gateway-cli-test@1e[0me[K
[e[90m..................e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m aws-api-gateway-cli-test@1e[0me[K
[e[90m..................e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m aws-api-gateway-cli-test@1e[0me[K
[e[90m..................e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m aws-api-gateway-cli-test@1e[0me[K
[e[90m..................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m aws-api-gateway-cli-test@1e[0me[K
[e[90m..................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m aws-api-gateway-cli-test@1e[0me[K
[e[90m..................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m aws-api-gateway-cli-test@1e[0me[K
[e[90m..................e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m aws-api-gateway-cli-test@1e[0me[K
[e[90m..................e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m yargs@8.0.2 checking instae[0me[K
[e[90m..................e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m yargs@8.0.2 checking instae[0me[K
[e[90m..................e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m js-cookie@2.2.0 checking ie[0me[K
[e[90m..................e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m js-cookie@2.2.0 checking ie[0me[K
[e[90m..................e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m js-cookie@2.2.0 checking ie[0me[K
[e[90m..................e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m js-cookie@2.2.0 checking ie[0me[K
[e[90m..................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m js-cookie@2.2.0 checking ie[0me[K
[e[90m..................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m js-cookie@2.2.0 checking ie[0me[K
[e[90m..................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m js-cookie@2.2.0 checking ie[0me[K
[e[90m..................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m js-cookie@2.2.0 checking ie[0me[K
[e[90m..................e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m js-cookie@2.2.0 checking ie[0me[K
[e[90m..................e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m sax@1.2.1 checking installe[0me[K
[e[90m..................e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m sax@1.2.1 checking installe[0me[K
[e[90m..................e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m sax@1.2.1 checking installe[0me[K
[e[90m..................e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m sax@1.2.1 checking installe[0me[K
[e[90m..................e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m sax@1.2.1 checking installe[0me[K
[e[90m..................e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m sax@1.2.1 checking installe[0me[K
[e[90m..................e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m sax@1.2.1 checking installe[0me[K
[e[90m..................e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m sax@1.2.1 checking installe[0me[K
[e[90m..................e[0m] \ loadDep:querystring: e[7msille[0m e[35mresolveWithNewModulee[0m base64-js@1.3.0 chece[0me[K
[e[90m..................e[0m] \ loadDep:querystring: e[7msille[0m e[35mresolveWithNewModulee[0m base64-js@1.3.0 chece[0me[K
[e[90m..................e[0m] \ loadDep:querystring: e[7msille[0m e[35mresolveWithNewModulee[0m base64-js@1.3.0 chece[0me[K
[e[90m..................e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m punycode@1.3.2 checking ine[0me[K
[e[90m..................e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m punycode@1.3.2 checking ine[0me[K
[e[7m e[27me[90m.................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m lodash@4.17.10 checking ine[0me[K
[e[7m e[27me[90m.................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m lodash@4.17.10 checking ine[0me[K
[e[7m e[27me[90m.................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m lodash@4.17.10 checking ine[0me[K
[e[7m e[27me[90m.................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m lodash@4.17.10 checking ine[0me[K
[e[7m e[27me[90m.................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m axios@0.18.0 checking inste[0me[K
[e[7m e[27me[90m.................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m axios@0.18.0 checking inste[0me[K
[e[7m e[27me[90m.................e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m axios@0.18.0 checking inste[0me[K
[e[7m e[27me[90m.................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m axios@0.18.0 checking inste[0me[K
[e[7m e[27me[90m.................e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m follow-redirects@1.5.1 chee[0me[K
[e[7m e[27me[90m.................e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m follow-redirects@1.5.1 chee[0me[K
[e[7m e[27me[90m.................e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m debug@3.1.0 checking instae[0me[K
[e[7m e[27me[90m.................e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m debug@3.1.0 checking instae[0me[K
[e[7m e[27me[90m.................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m ms@2.0.0 checking installae[0me[K
[e[7m e[27me[90m.................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m ms@2.0.0 checking installae[0me[K
[e[7m e[27me[90m.................e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m ms@2.0.0 checking installae[0me[K
[e[7m e[27me[90m.................e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m is-retry-allowed@1.1.0 chee[0me[K
[e[7m  e[27me[90m................e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m xml2js@0.4.19 checking inse[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m xmlbuilder@9.0.7 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m xmlbuilder@9.0.7 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m xmlbuilder@9.0.7 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m xmlbuilder@9.0.7 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m xmlbuilder@9.0.7 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m xmlbuilder@9.0.7 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m xmlbuilder@9.0.7 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m y18n@3.2.1 checking instale[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m y18n@3.2.1 checking instale[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m y18n@3.2.1 checking instale[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m y18n@3.2.1 checking instale[0me[K
[e[7m   e[27me[90m...............e[0m] \ loadDep:strip-ansi: e[7msille[0m e[35mresolveWithNewModulee[0m wrap-ansi@2.1.0 checke[0me[K
[e[7m   e[27me[90m...............e[0m] \ loadDep:strip-ansi: e[7msille[0m e[35mresolveWithNewModulee[0m wrap-ansi@2.1.0 checke[0me[K
[e[7m   e[27me[90m...............e[0m] \ loadDep:strip-ansi: e[7msille[0m e[35mresolveWithNewModulee[0m wrap-ansi@2.1.0 checke[0me[K
[e[7m   e[27me[90m...............e[0m] - loadDep:strip-ansi: e[7msille[0m e[35mresolveWithNewModulee[0m wrap-ansi@2.1.0 checke[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m code-point-at@1.1.0 checkie[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m code-point-at@1.1.0 checkie[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m number-is-nan@1.0.1 checkie[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m number-is-nan@1.0.1 checkie[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m number-is-nan@1.0.1 checkie[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m string-width@1.0.2 checkine[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m string-width@1.0.2 checkine[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m string-width@1.0.2 checkine[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m lcid@1.0.0 checking instale[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m lcid@1.0.0 checking instale[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m lcid@1.0.0 checking instale[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m lcid@1.0.0 checking instale[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m lcid@1.0.0 checking instale[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m is-stream@1.1.0 checking ie[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m is-stream@1.1.0 checking ie[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m is-stream@1.1.0 checking ie[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m is-stream@1.1.0 checking ie[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m which@1.3.1 checking instae[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m which@1.3.1 checking instae[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m which@1.3.1 checking instae[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m which@1.3.1 checking instae[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m yallist@2.1.2 checking inse[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m yallist@2.1.2 checking inse[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m yallist@2.1.2 checking inse[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m shebang-regex@1.0.0 checkie[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m shebang-regex@1.0.0 checkie[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m shebang-regex@1.0.0 checkie[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m shebang-regex@1.0.0 checkie[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m isexe@2.0.0 checking instae[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m isexe@2.0.0 checking instae[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m isexe@2.0.0 checking instae[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m path-key@2.0.1 checking ine[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m invert-kv@1.0.0 checking ie[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m invert-kv@1.0.0 checking ie[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m invert-kv@1.0.0 checking ie[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m mimic-fn@1.2.0 checking ine[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m mimic-fn@1.2.0 checking ine[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m read-pkg@2.0.0 checking ine[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m read-pkg@2.0.0 checking ine[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m read-pkg@2.0.0 checking ine[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m locate-path@2.0.0 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m locate-path@2.0.0 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m locate-path@2.0.0 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m locate-path@2.0.0 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m locate-path@2.0.0 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m locate-path@2.0.0 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m locate-path@2.0.0 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m locate-path@2.0.0 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m p-locate@2.0.0 checking ine[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m p-locate@2.0.0 checking ine[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m p-limit@1.3.0 checking inse[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m p-limit@1.3.0 checking inse[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m p-limit@1.3.0 checking inse[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m p-try@1.0.0 checking instae[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m p-try@1.0.0 checking instae[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m p-try@1.0.0 checking instae[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m p-try@1.0.0 checking instae[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m load-json-file@2.0.0 checke[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m load-json-file@2.0.0 checke[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m load-json-file@2.0.0 checke[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m load-json-file@2.0.0 checke[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m load-json-file@2.0.0 checke[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m pify@2.3.0 checking instale[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m pify@2.3.0 checking instale[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m error-ex@1.3.2 checking ine[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m error-ex@1.3.2 checking ine[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m is-arrayish@0.2.1 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m is-arrayish@0.2.1 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m is-arrayish@0.2.1 checkinge[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m validate-npm-package-licene[0me[K
[e[7m   e[27me[90m...............e[0m] / fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m validate-npm-package-licene[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m builtin-modules@1.1.1 chece[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m builtin-modules@1.1.1 chece[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m builtin-modules@1.1.1 chece[0me[K
[e[7m   e[27me[90m...............e[0m] | fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m builtin-modules@1.1.1 chece[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m spdx-expression-parse@3.0.e[0me[K
[e[7m   e[27me[90m...............e[0m] - fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m spdx-expression-parse@3.0.e[0me[K
[e[7m   e[27me[90m...............e[0m] \ fetchMetadata: e[7msille[0m e[35mresolveWithNewModulee[0m spdx-expression-parse@3.0.e[0me[K
[e[7m   e[27me[90m...............e[0m] / loadDep:spdx-license-ids: e[7msille[0m e[35mresolveWithNewModulee[0m spdx-license-ide[0me[K
[e[7m   e[27me[90m...............e[0m] / loadDep:spdx-license-ids: e[7msille[0m e[35mresolveWithNewModulee[0m spdx-license-ide[0me[K
[e[7m      e[27me[90m............e[0m] / diffTrees: e[7msille[0m e[35minstalle[0m generateActionsToTakee[0me[K
[e[7m       e[27me[90m...........e[0m] \ extract:aws-api-gateway-cli-test: e[34;40mverbe[0m e[35mlocke[0m using /home/diego/.npm/e[0me[K
[e[7m       e[27me[90m...........e[0m] \ extract:aws-api-gateway-cli-test: e[34;40mverbe[0m e[35mlocke[0m using /home/diego/.npm/e[0me[K
[e[7m       e[27me[90m...........e[0m] \ extract:aws-api-gateway-cli-test: e[34;40mverbe[0m e[35mlocke[0m using /home/diego/.npm/e[0me[K
[e[7m       e[27me[90m...........e[0m] \ extract:aws-api-gateway-cli-test: e[34;40mverbe[0m e[35mlocke[0m using /home/diego/.npm/e[0me[K
[e[7m       e[27me[90m...........e[0m] \ extract:aws-api-gateway-cli-test: e[34;40mverbe[0m e[35mlocke[0m using /home/diego/.npm/e[0me[K
[e[7m       e[27me[90m...........e[0m] \ extract:aws-api-gateway-cli-test: e[34;40mverbe[0m e[35mlocke[0m using /home/diego/.npm/e[0me[K
[e[7m       e[27me[90m...........e[0m] \ extract:aws-api-gateway-cli-test: e[34;40mverbe[0m e[35mlocke[0m using /home/diego/.npm/e[0me[K
[e[7m       e[27me[90m...........e[0m] \ extract:aws-api-gateway-cli-test: e[34;40mverbe[0m e[35mlocke[0m using /home/diego/.npm/e[0me[K
[e[7m       e[27me[90m...........e[0m] \ extract:aws-api-gateway-cli-test: e[34;40mverbe[0m e[35mlocke[0m using /home/diego/.npm/e[0me[K
[e[7m       e[27me[90m...........e[0m] \ extract:aws-api-gateway-cli-test: e[34;40mverbe[0m e[35mlocke[0m using /home/diego/.npm/e[0me[K
[e[7m       e[27me[90m...........e[0m] \ extract:aws-api-gateway-cli-test: e[34;40mverbe[0m e[35mlocke[0m using /home/diego/.npm/e[0me[K
[e[7m       e[27me[90m...........e[0m] \ extract:aws-api-gateway-cli-test: e[34;40mverbe[0m e[35mlocke[0m using /home/diego/.npm/e[0me[K
[e[7m       e[27me[90m...........e[0m] \ extract:aws-api-gateway-cli-test: e[34;40mverbe[0m e[35mlocke[0m using /home/diego/.npm/e[0me[K
[e[7m       e[27me[90m...........e[0m] \ extract:aws-api-gateway-cli-test: e[34;40mverbe[0m e[35mlocke[0m using /home/diego/.npm/e[0me[K
[e[7m        e[27me[90m..........e[0m] \ extract:is-builtin-module: e[7msille[0m e[35mextracte[0m lru-cache@4.1.3e[0me[K
[e[7m        e[27me[90m..........e[0m] - extract:ieee754: e[7msille[0m e[35mextracte[0m wrap-ansi@2.1.0e[0me[K
[e[7m        e[27me[90m..........e[0m] / extract:ms: e[7msille[0m e[35mextracte[0m validate-npm-package-license@3.0.3e[0me[K
[e[7m         e[27me[90m.........e[0m] \ extract:p-try: e[7msille[0m e[35mextracte[0m strip-bom@3.0.0e[0me[K
[e[7m         e[27me[90m.........e[0m] - extract:path-key: e[7msille[0m e[35mextracte[0m spdx-correct@3.0.0e[0me[K
[e[7m         e[27me[90m.........e[0m] / extract:aws-api-gateway-cli-test: e[7msille[0m e[35mextracte[0m spdx-exceptions@2.1.e[0me[K
[e[7m         e[27me[90m.........e[0m] / extract:lru-cache: e[7msille[0m e[35mextracte[0m set-blocking@2.0.0e[0me[K
[e[7m         e[27me[90m.........e[0m] - extract:aws-api-gateway-client: e[7msille[0m e[35mextracte[0m require-directory@2.1.e[0me[K
[e[7m          e[27me[90m........e[0m] - extract:read-pkg-up: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m          e[27me[90m........e[0m] - extract:strip-bom: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m          e[27me[90m........e[0m] - extract:is-fullwidth-code-point: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m           e[27me[90m.......e[0m] - extract:set-blocking: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m           e[27me[90m.......e[0m] - extract:require-directory: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m           e[27me[90m.......e[0m] - extract:punycode: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m           e[27me[90m.......e[0m] - extract:sax: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:url: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:xml2js: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:xml2js: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:xml2js: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:xml2js: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:xml2js: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:amazon-cognito-identity-js: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:amazon-cognito-identity-js: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:amazon-cognito-identity-js: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:crypto-browserify: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:aws-sdk: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:aws-sdk: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:aws-sdk: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:aws-sdk: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:lodash: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:lodash: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:lodash: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - extract:lodash: e[7msille[0m e[35mextracte[0m path-type@2.0.0e[0me[K
[e[7m            e[27me[90m......e[0m] - finalize:ansi-regex: e[7msille[0m e[35mdoSeriale[0m finalize 840e[0me[K
[e[7m            e[27me[90m......e[0m] / finalize:read-pkg: e[7msille[0m e[35mfinalizee[0m /home/diego/.npm/_npx/43583/lib/noe[0me[K
[e[7m            e[27me[90m......e[0m] \ finalize:set-blocking: e[7msille[0m e[35mfinalizee[0m /home/diego/.npm/_npx/43583/lie[0me[K
[e[7m            e[27me[90m......e[0m] / finalize:hosted-git-info: e[7msille[0m e[35mfinalizee[0m /home/diego/.npm/_npx/43583e[0me[K
[e[7m            e[27me[90m......e[0m] / refresh-package-json:ansi-regex: e[7msille[0m e[35mfinalizee[0m /home/diego/.npm/_npe[0me[K
[e[7m            e[27me[90m......e[0m] / refresh-package-json:ansi-regex: e[7msille[0m e[35mfinalizee[0m /home/diego/.npm/_npe[0me[K
[e[7m            e[27me[90m......e[0m] / refresh-package-json:ansi-regex: e[7msille[0m e[35mfinalizee[0m /home/diego/.npm/_npe[0me[K
[e[7m            e[27me[90m......e[0m] / refresh-package-json:ansi-regex: e[7msille[0m e[35mfinalizee[0m /home/diego/.npm/_npe[0me[K
[e[7m            e[27me[90m......e[0m] \ refresh-package-json:xml2js: e[7msille[0m e[35mrefresh-package-jsone[0m /home/diego/e[0me[K
[e[7m            e[27me[90m......e[0m] \ refresh-package-json:xml2js: e[7msille[0m e[35mrefresh-package-jsone[0m /home/diego/e[0me[K
[e[7m            e[27me[90m......e[0m] \ refresh-package-json:xml2js: e[7msille[0m e[35mrefresh-package-jsone[0m /home/diego/e[0me[K
[e[7m            e[27me[90m......e[0m] / build:ansi-regex: e[7msille[0m e[35mdoSeriale[0m build 840e[0me[K
[e[7m            e[27me[90m......e[0m] | postinstall: e[32minfoe[0m e[35mlifecyclee[0m ansi-regex@2.1.1~postinstall: ansi-regee[0me[K
e[Ke[?25hnpx: installed 105 in 15.29s
/home/diego/.npm/_npx/43583/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/request.js:31
            throw err;
            ^

TypeError: Cannot read property '1' of null
    at Object.apigClientFactory.newClient (/home/diego/.npm/_npx/43583/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-api-gateway-client/dist/apigClient.js:63:57)
    at makeRequest (/home/diego/.npm/_npx/43583/lib/node_modules/aws-api-gateway-cli-test/index.js:157:38)
    at /home/diego/.npm/_npx/43583/lib/node_modules/aws-api-gateway-cli-test/index.js:150:5
    at /home/diego/.npm/_npx/43583/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/credentials.js:123:23
    at Response.<anonymous> (/home/diego/.npm/_npx/43583/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/credentials/cognito_identity_credentials.js:258:7)
    at Request.<anonymous> (/home/diego/.npm/_npx/43583/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/request.js:364:18)
    at Request.callListeners (/home/diego/.npm/_npx/43583/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
    at Request.emit (/home/diego/.npm/_npx/43583/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
    at Request.emit (/home/diego/.npm/_npx/43583/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/request.js:683:14)
    at Request.transition (/home/diego/.npm/_npx/43583/lib/node_modules/aws-api-gateway-cli-test/node_modules/aws-sdk/lib/request.js:22:10)
e]0;diego@ubuntu: ~/Documents/notes-app-apiae[01;32mdiego@ubuntue[00m:e[01;34m~/Documents/notes-app-apie[00m$ exit
exit

Script done on 2018-07-22 18:12:56-0600

Yeah most of those debug messages are fine. That is installing the NPM module.

But just from googling the error, it sounds like some people found it related to the timezone offset? Just as a sanity check, is your computer time set correctly?

Yes. It was set to automatically set the time, I changed it to manually and tested, also tested changing it to Ohio time zone taking into account that my aws region is east-2. Tried eastern, central and mountain times zones but didn’t work so went back to my local time zone.

Yeah it’s a very cryptic error message. I’m not sure what it could be. If you host your code on GitHub maybe I can take a look.

Your help is deeply appreciated, here is the link:

So I had a chance to test yours out. I can confirm that the issue is replicated if I run your command. It seems like everything worked except it failed while invoking the API. Unfortunately I cannot check the logs for you.

I deployed your project under my account and connected to my resources and it worked fine. I think there is an issue with your deployment. I would do a serverless remove and try deploying it again.

1 Like