I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[X ] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:
Expected Behavior
My project was upgraded from a V1 CLI project using the 'askx util upgrade-to-v2' command.
I am now attempting to deploy using the 'askx deploy' command.
Current Behavior
The output of askx deploy --debug is the following:
VOLLEY_FM $ askx deploy --debug
==================== Deploy Skill Metadata ====================
⠏ Uploading the entire skill package (it may take few minutes to build the skill metadata)...
-------------------- Debug Mode --------------------
[2019-12-21T20:02:50.437Z] - DEBUG - CREATE-UPLOAD
request-id: 33186391-4c8c-45b7-9736-dcb911a00e48
POST https://api.amazonalexa.com/v1/skills/uploads
status code: 201 Created
Request headers: {"Authorization":"","User-Agent":"ask-cli-x/0.6.0 Node/v10.16.3 Darwin/19.0.0","content-length":0}
Response headers: {"content-type":"application/json","content-length":"419","connection":"close","server":"Server","date":"Sat, 21 Dec 2019 20:03:29 GMT","x-amzn-requestid":"33186391-4c8c-45b7-9736-dcb911a00e48","x-amz-date":"Sat, 21 Dec 2019 20:03:29 GMT","vary":"Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-amz-rid":"66N7BME4WYG3GS4H6KYW","x-cache":"Miss from cloudfront","via":"1.1 b8848f7d85efd91eade9002255af21c0.cloudfront.net (CloudFront)","x-amz-cf-pop":"MIA3-C1","x-amz-cf-id":"l--zpamoj047GAreO7JkAtvpGb8SkDHt1WY8xxrgTmS-kEoBpPmEgw=="}
[2019-12-21T20:02:51.236Z] - DEBUG - UPLOAD-SKILL-PACKAGE
PUT https://skill-uploads-prod-na.s3.amazonaws.com/amzn1.ask-package.upload.7629ccac-22f9-438e-949d-92cbbe1bb48a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20191221T200329Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=AKIA426DM2YLQ3VUZ6PO%2F20191221%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=ab3907139c65088d9ca31d5b107a591b07e4013d2781b75d368c78a2327d68da
status code: 200 OK
Request headers: {"User-Agent":"ask-cli-x/0.6.0 Node/v10.16.3 Darwin/19.0.0","content-length":30962}
Request body: [object Object]
Response headers: {"x-amz-id-2":"Vq77JfY/CYiy3YhJTd0Z+lzdByAxZSz9VH/UwpdTrA9sfnKCfQf0Obmw+VA8p5B4Xi8bOTJ58t4=","x-amz-request-id":"F741B03FA22C2787","date":"Sat, 21 Dec 2019 20:03:30 GMT","x-amz-expiration":"expiry-date="Sun, 29 Dec 2019 00:00:00 GMT", rule-id="Clean up old uploads"","etag":""839cd53d9f0465baa313c649e61fa2d8"","content-length":"0","server":"AmazonS3","connection":"close"}
[2019-12-21T20:02:51.490Z] - DEBUG - IMPORT-PACKAGE
request-id: 0564b4ef-f7e1-47c6-b873-68c135f02282
POST https://api.amazonalexa.com/v1/skills/amzn1.ask.skill.f3fe4a05-efb1-4717-8dc3-1fbe755e54c7/imports
status code: 202 Accepted
Request headers: {"Authorization":"","User-Agent":"ask-cli-x/0.6.0 Node/v10.16.3 Darwin/19.0.0","accept":"application/json","content-type":"application/json","content-length":390}
Request body: {"location":"https://skill-uploads-prod-na.s3.amazonaws.com/amzn1.ask-package.upload.7629ccac-22f9-438e-949d-92cbbe1bb48a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20191221T200329Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=AKIA426DM2YLQ3VUZ6PO%2F20191221%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=ab3907139c65088d9ca31d5b107a591b07e4013d2781b75d368c78a2327d68da"}
Response headers: {"content-type":"application/json","content-length":"2","connection":"close","server":"Server","date":"Sat, 21 Dec 2019 20:03:30 GMT","x-amzn-requestid":"0564b4ef-f7e1-47c6-b873-68c135f02282","x-amz-date":"Sat, 21 Dec 2019 20:03:30 GMT","location":"/v1/skills/imports/amzn1.ask-package.import.60b355d0-20a4-41c6-97b7-331fe91f4825","x-amz-rid":"VYN0QMQCX7R0GRHD5BRE","vary":"Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Miss from cloudfront","via":"1.1 9a75cc11971085fc36bff426f03899e0.cloudfront.net (CloudFront)","x-amz-cf-pop":"MIA3-C1","x-amz-cf-id":"AAeTpodG6c1knUSKcWlFpj2SsxfeAUWaUHnKcTbkqiUjYomPFNZilA=="}
Response body: {}
[2019-12-21T20:02:51.660Z] - DEBUG - GET-IMPORT-STATUS
request-id: 337d4f60-d6e2-4da2-b691-3b21bb3f794a
GET https://api.amazonalexa.com/v1/skills/imports/amzn1.ask-package.import.60b355d0-20a4-41c6-97b7-331fe91f4825
status code: 200 OK
Request headers: {"Authorization":"","User-Agent":"ask-cli-x/0.6.0 Node/v10.16.3 Darwin/19.0.0"}
Response headers: {"content-type":"application/json","content-length":"24","connection":"close","server":"Server","date":"Sat, 21 Dec 2019 20:03:30 GMT","x-amzn-requestid":"337d4f60-d6e2-4da2-b691-3b21bb3f794a","x-amz-date":"Sat, 21 Dec 2019 20:03:30 GMT","x-amz-rid":"CC0QS9BQMRPEN2DVXT63","vary":"Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Miss from cloudfront","via":"1.1 57b326460a798c60c06d0be01006b3d7.cloudfront.net (CloudFront)","x-amz-cf-pop":"MIA3-C1","x-amz-cf-id":"GYIAuYhv6rbMOp70DVDgwPZV8NkUJ8XYB5kniK-H8vbMYSgoirJ5Vg=="}
Response body: "{"status":"IN_PROGRESS"}"
[2019-12-21T20:02:53.837Z] - DEBUG - GET-IMPORT-STATUS
request-id: 8cae8ef7-98f2-4443-9412-a722a49ecf68
GET https://api.amazonalexa.com/v1/skills/imports/amzn1.ask-package.import.60b355d0-20a4-41c6-97b7-331fe91f4825
status code: 200 OK
Request headers: {"Authorization":"","User-Agent":"ask-cli-x/0.6.0 Node/v10.16.3 Darwin/19.0.0"}
Response headers: {"content-type":"application/json","content-length":"24","connection":"close","server":"Server","date":"Sat, 21 Dec 2019 20:03:32 GMT","x-amzn-requestid":"8cae8ef7-98f2-4443-9412-a722a49ecf68","x-amz-date":"Sat, 21 Dec 2019 20:03:32 GMT","x-amz-rid":"SC540BJXMDV298QJ3HX6","vary":"Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Miss from cloudfront","via":"1.1 107e6221a3918b7fdc812d78ae3e5448.cloudfront.net (CloudFront)","x-amz-cf-pop":"MIA3-C1","x-amz-cf-id":"1jIFTtsY551BkkXO4Dn8Kp-mgploUvWrRYjM0NQp-MrKci9KgbsTcA=="}
Response body: "{"status":"IN_PROGRESS"}"
[2019-12-21T20:02:56.204Z] - DEBUG - GET-IMPORT-STATUS
request-id: 1c79b346-24a0-4639-b909-f571da87e35f
GET https://api.amazonalexa.com/v1/skills/imports/amzn1.ask-package.import.60b355d0-20a4-41c6-97b7-331fe91f4825
status code: 200 OK
Request headers: {"Authorization":"","User-Agent":"ask-cli-x/0.6.0 Node/v10.16.3 Darwin/19.0.0"}
Response headers: {"content-type":"application/json","content-length":"24","connection":"close","server":"Server","date":"Sat, 21 Dec 2019 20:03:34 GMT","x-amzn-requestid":"1c79b346-24a0-4639-b909-f571da87e35f","x-amz-date":"Sat, 21 Dec 2019 20:03:34 GMT","x-amz-rid":"PCFRKXPKSC3TK9K1CR3X","vary":"Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Miss from cloudfront","via":"1.1 b6efbf009f233af7a7aa7da68e6e2849.cloudfront.net (CloudFront)","x-amz-cf-pop":"MIA3-C1","x-amz-cf-id":"1Zw-JXTSG2gCFASKqM8YD1px2hIiRhl4KFTA1gwDAsACKL8_OP1UcQ=="}
Response body: "{"status":"IN_PROGRESS"}"
[2019-12-21T20:02:58.871Z] - DEBUG - GET-IMPORT-STATUS
request-id: 52f52229-e319-4bc2-9f02-5d48f69e3d35
GET https://api.amazonalexa.com/v1/skills/imports/amzn1.ask-package.import.60b355d0-20a4-41c6-97b7-331fe91f4825
status code: 200 OK
Request headers: {"Authorization":"","User-Agent":"ask-cli-x/0.6.0 Node/v10.16.3 Darwin/19.0.0"}
Response headers: {"content-type":"application/json","content-length":"24","connection":"close","server":"Server","date":"Sat, 21 Dec 2019 20:03:37 GMT","x-amzn-requestid":"52f52229-e319-4bc2-9f02-5d48f69e3d35","x-amz-date":"Sat, 21 Dec 2019 20:03:37 GMT","x-amz-rid":"7X3FJCBEG8SHSE0NX90A","vary":"Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Miss from cloudfront","via":"1.1 3f72a8b28c744ea2f627e9f8a8ac8283.cloudfront.net (CloudFront)","x-amz-cf-pop":"MIA3-C1","x-amz-cf-id":"bIvJzOzjEmyjwZwdwYyARuabbzqUbzX5CtoS96r1y0hdQv_VhzSv7Q=="}
Response body: "{"status":"IN_PROGRESS"}"
[2019-12-21T20:03:01.721Z] - DEBUG - GET-IMPORT-STATUS
request-id: 118cf949-25ae-4ce2-8508-0b33db487bf2
GET https://api.amazonalexa.com/v1/skills/imports/amzn1.ask-package.import.60b355d0-20a4-41c6-97b7-331fe91f4825
status code: 200 OK
Request headers: {"Authorization":"","User-Agent":"ask-cli-x/0.6.0 Node/v10.16.3 Darwin/19.0.0"}
Response headers: {"content-type":"application/json","content-length":"24","connection":"close","server":"Server","date":"Sat, 21 Dec 2019 20:03:40 GMT","x-amzn-requestid":"118cf949-25ae-4ce2-8508-0b33db487bf2","x-amz-date":"Sat, 21 Dec 2019 20:03:40 GMT","x-amz-rid":"X6Y2ZSHCYCXYMDSMS6KK","vary":"Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Miss from cloudfront","via":"1.1 80677c288b4024a45c671874b4fa625a.cloudfront.net (CloudFront)","x-amz-cf-pop":"MIA3-C1","x-amz-cf-id":"dqaAao9dhiCr9PSMjrzhj9ZgXTp89zRWQbpgUrxAZDpxq4NYwy2vBg=="}
Response body: "{"status":"IN_PROGRESS"}"
[2019-12-21T20:03:04.867Z] - DEBUG - GET-IMPORT-STATUS
request-id: 265dbeef-54f7-4974-a3df-33646211aeb2
GET https://api.amazonalexa.com/v1/skills/imports/amzn1.ask-package.import.60b355d0-20a4-41c6-97b7-331fe91f4825
status code: 200 OK
Request headers: {"Authorization":"","User-Agent":"ask-cli-x/0.6.0 Node/v10.16.3 Darwin/19.0.0"}
Response headers: {"content-type":"application/json","content-length":"24","connection":"close","server":"Server","date":"Sat, 21 Dec 2019 20:03:43 GMT","x-amzn-requestid":"265dbeef-54f7-4974-a3df-33646211aeb2","x-amz-date":"Sat, 21 Dec 2019 20:03:43 GMT","x-amz-rid":"TF6QRHVVSTCPCA321ECD","vary":"Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Miss from cloudfront","via":"1.1 5b0ed724550233627ab2489397372008.cloudfront.net (CloudFront)","x-amz-cf-pop":"MIA3-C1","x-amz-cf-id":"Soa0DiGYHZ0ekesSL0wjz_KsbdefSGxeIdnj3nfoYHkAQWaFt_bB8w=="}
Response body: "{"status":"IN_PROGRESS"}"
[2019-12-21T20:03:08.258Z] - DEBUG - GET-IMPORT-STATUS
request-id: d1f8ace5-ea4f-4f2e-afb7-323c201667ea
GET https://api.amazonalexa.com/v1/skills/imports/amzn1.ask-package.import.60b355d0-20a4-41c6-97b7-331fe91f4825
status code: 200 OK
Request headers: {"Authorization":"","User-Agent":"ask-cli-x/0.6.0 Node/v10.16.3 Darwin/19.0.0"}
Response headers: {"content-type":"application/json","content-length":"24","connection":"close","server":"Server","date":"Sat, 21 Dec 2019 20:03:46 GMT","x-amzn-requestid":"d1f8ace5-ea4f-4f2e-afb7-323c201667ea","x-amz-date":"Sat, 21 Dec 2019 20:03:46 GMT","x-amz-rid":"FGY9AHSD6H6NAAC1FKX7","vary":"Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Miss from cloudfront","via":"1.1 6dda9c60465801404125720fa2c0e501.cloudfront.net (CloudFront)","x-amz-cf-pop":"MIA3-C1","x-amz-cf-id":"qptC30Rk5C0oSvReoiAtKe3CjQmJmUfn2cxR4MV3cA9a1E9GSIrjCA=="}
Response body: "{"status":"IN_PROGRESS"}"
[2019-12-21T20:03:11.976Z] - DEBUG - GET-IMPORT-STATUS
request-id: 4590890f-61fb-44c4-a83a-94170a6d6c58
GET https://api.amazonalexa.com/v1/skills/imports/amzn1.ask-package.import.60b355d0-20a4-41c6-97b7-331fe91f4825
status code: 200 OK
Request headers: {"Authorization":"","User-Agent":"ask-cli-x/0.6.0 Node/v10.16.3 Darwin/19.0.0"}
Response headers: {"content-type":"application/json","content-length":"24","connection":"close","server":"Server","date":"Sat, 21 Dec 2019 20:03:50 GMT","x-amzn-requestid":"4590890f-61fb-44c4-a83a-94170a6d6c58","x-amz-date":"Sat, 21 Dec 2019 20:03:50 GMT","x-amz-rid":"1WGMCYNM4X7EGN4Q9WCN","vary":"Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Miss from cloudfront","via":"1.1 0c9159c06691f6f55df2ceb396d9fd79.cloudfront.net (CloudFront)","x-amz-cf-pop":"MIA3-C1","x-amz-cf-id":"ZJykItnkLDQWmS46vsYe3tN-cCF_nTiUGYLwrFOtsRXg4WvIb2ycIA=="}
Response body: "{"status":"IN_PROGRESS"}"
[2019-12-21T20:03:16.047Z] - DEBUG - GET-IMPORT-STATUS
request-id: a605ea7b-2b4e-4b87-81e5-ef3d6cb7f2d3
GET https://api.amazonalexa.com/v1/skills/imports/amzn1.ask-package.import.60b355d0-20a4-41c6-97b7-331fe91f4825
status code: 200 OK
Request headers: {"Authorization":"","User-Agent":"ask-cli-x/0.6.0 Node/v10.16.3 Darwin/19.0.0"}
Response headers: {"content-type":"application/json","content-length":"24","connection":"close","server":"Server","date":"Sat, 21 Dec 2019 20:03:54 GMT","x-amzn-requestid":"a605ea7b-2b4e-4b87-81e5-ef3d6cb7f2d3","x-amz-date":"Sat, 21 Dec 2019 20:03:54 GMT","x-amz-rid":"66K2TDZ58C2BAQ4J17MR","vary":"Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Miss from cloudfront","via":"1.1 4b55539e55239f4c2ab64bc16c112d4f.cloudfront.net (CloudFront)","x-amz-cf-pop":"MIA3-C1","x-amz-cf-id":"6n2dVi7AMn_NX0WdA6Gdrvfg266EtjUgem5kfUxbnoQVv3pKaOu4yA=="}
Response body: "{"status":"IN_PROGRESS"}"
[2019-12-21T20:03:20.596Z] - DEBUG - GET-IMPORT-STATUS
request-id: cb145fde-45cb-47e0-94a0-6a11ff0060b3
GET https://api.amazonalexa.com/v1/skills/imports/amzn1.ask-package.import.60b355d0-20a4-41c6-97b7-331fe91f4825
status code: 200 OK
Request headers: {"Authorization":"","User-Agent":"ask-cli-x/0.6.0 Node/v10.16.3 Darwin/19.0.0"}
Response headers: {"content-type":"application/json","content-length":"24","connection":"close","server":"Server","date":"Sat, 21 Dec 2019 20:03:59 GMT","x-amzn-requestid":"cb145fde-45cb-47e0-94a0-6a11ff0060b3","x-amz-date":"Sat, 21 Dec 2019 20:03:59 GMT","x-amz-rid":"KHBQ4KCPFM9DQHZ1XRT8","vary":"Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Miss from cloudfront","via":"1.1 ee5a1fbfd85d9d25aef83ca16d91afcb.cloudfront.net (CloudFront)","x-amz-cf-pop":"MIA3-C1","x-amz-cf-id":"BGfajG22ILEdRDGMvOkqZgzycsXv6LyhyDANnz-C6DaLzgQM3qclAg=="}
Response body: "{"status":"IN_PROGRESS"}"
[2019-12-21T20:03:25.585Z] - DEBUG - GET-IMPORT-STATUS
request-id: 45492f1f-eda0-49b6-94e2-192bc252a1d0
GET https://api.amazonalexa.com/v1/skills/imports/amzn1.ask-package.import.60b355d0-20a4-41c6-97b7-331fe91f4825
status code: 200 OK
Request headers: {"Authorization":"","User-Agent":"ask-cli-x/0.6.0 Node/v10.16.3 Darwin/19.0.0"}
Response headers: {"content-type":"application/json","content-length":"22","connection":"close","server":"Server","date":"Sat, 21 Dec 2019 20:04:04 GMT","x-amzn-requestid":"45492f1f-eda0-49b6-94e2-192bc252a1d0","x-amz-date":"Sat, 21 Dec 2019 20:04:04 GMT","x-amz-rid":"E919DVW2FZJS3RYQ37N8","vary":"Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent","x-cache":"Miss from cloudfront","via":"1.1 0c9159c06691f6f55df2ceb396d9fd79.cloudfront.net (CloudFront)","x-amz-cf-pop":"MIA3-C1","x-amz-cf-id":"dYPw1w_nPQ6_DlG6sGk66Zy996xlkUh5wSIq0GG7mCg50SK1x5dy8g=="}
Response body: "{"status":"SUCCEEDED"}"
/Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/lib/controllers/skill-metadata-controller/index.js:147
callback(null, pollResponse.body.skill.skillId);
^
TypeError: Cannot read property 'skillId' of undefined
at _pollImportStatus (/Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/lib/controllers/skill-metadata-controller/index.js:147:64)
at retryUtils.retry (/Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/lib/controllers/skill-metadata-controller/index.js:298:86)
at async.doWhilst (/Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/lib/utils/retry-utility.js:63:13)
at /Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/node_modules/async/dist/async.js:969:16
at next (/Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/node_modules/async/dist/async.js:3022:18)
at retryCall (/Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/lib/utils/retry-utility.js:47:25)
at smapiClient.skillPackage.getImportStatus (/Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/lib/controllers/skill-metadata-controller/index.js:294:17)
at _normalizeSmapiResponse (/Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/lib/clients/smapi-client/index.js:152:21)
at _normalizeSmapiResponse (/Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/lib/clients/smapi-client/index.js:172:5)
at httpClient.request (/Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/lib/clients/smapi-client/index.js:151:17)
at Request.requestLib [as _callback] (/Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/lib/clients/http-client.js:54:16)
at Request.self.callback (/Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/node_modules/request/request.js:185:22)
at Request.emit (events.js:198:13)
at Request. (/Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/node_modules/request/request.js:1161:10)
at Request.emit (events.js:198:13)
at IncomingMessage. (/Users/jmw/.nvm/versions/node/v10.16.3/lib/node_modules/ask-cli-x/node_modules/request/request.js:1083:12)
Your Environment and Context
- ask-cli version: 0.6.0
- Operating System and version: MacOS Catalina
- Node.js version used for development: v10.16.3
- NPM version used for development: 6.13.4