Cannot read property 'length' of undefined on data.StackEvents
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- cloud, infrastructure
Research direction
Start in index.js at line 27, where the stack event response is accessed, and compare the undefined data.StackEvents case with the error information in the issue. Reproduce the AWS response that triggers the exception and verify that completion no longer calls length on missing data while the failure is surfaced appropriately.
Written by the indexing model from the issue text.
Description
Looks like data.StackEvents can be undefined, and not have a error set
/usr/local/lib/node_modules/mapbox-cli/node_modules/aws-sdk/lib/request.js:30
throw err;
^
TypeError: Cannot read property 'length' of undefined
at Response.<anonymous> (/usr/local/lib/node_modules/mapbox-cli/node_modules/cfn-stack-event-stream/index.js:27:49)
at Request.<anonymous> (/usr/local/lib/node_modules/mapbox-cli/node_modules/aws-sdk/lib/request.js:353:18)
at Request.callListeners (/usr/local/lib/node_modules/mapbox-cli/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
at Request.emit (/usr/local/lib/node_modules/mapbox-cli/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
at Request.emit (/usr/local/lib/node_modules/mapbox-cli/node_modules/aws-sdk/lib/request.js:595:14)
at Request.transition (/usr/local/lib/node_modules/mapbox-cli/node_modules/aws-sdk/lib/request.js:21:10)
at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/mapbox-cli/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /usr/local/lib/node_modules/mapbox-cli/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request.<anonymous> (/usr/local/lib/node_modules/mapbox-cli/node_modules/aws-sdk/lib/request.js:37:9)
at Request.<anonymous> (/usr/local/lib/node_modules/mapbox-cli/node_modules/aws-sdk/lib/request.js:597:12)
- Dominant language
- JavaScript
- Stars
- 8
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/cfn-stack-event-stream
-
assembly-line
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
assembly-line
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Fix tests Open
Difficulty 3/5 1-2 days Newbie friendliness 20/100
All issues in mapbox/cfn-stack-event-stream
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·