SAM run/debug repeatedly shows ECONNREFUSED
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 807
- Avg merge
- 10h 12m
- Merged PRs (30d)
- 7
Description
## Problem
If sam run/debug fails, it may repeatedly (5+ times) show ECONNREFUSED modal popup, which is very annoying.

## Steps to reproduce the issue
1. create a CodeCatalyst "empty" devenv
- (likely can also use a local machine if you want)
2. unzip the zip from #3281 and copy its files into the devenv workspace
3. try to debug the lambda (it should fail, because that zip has an encoding issue)
4. ECONNREFUSED modal popup is shown. After dismissing it, it appears again a few seconds later, and so on... 5+ times.
## Expected behavior
Show the dialog once (or zero times, perhaps only in Output view or statusbar instead).
## System details (run the `AWS: About Toolkit` command)
- OS: linux (CodeCatalyst devenv)
- Visual Studio Code version: 1.77
- AWS Toolkit version: 1.67
Contributor guide
Research direction
Reproduce the failure using the CodeCatalyst devenv steps and the zip from #3281, then trace the SAM run/debug error handling in the AWS Toolkit for VS Code. Done means ECONNREFUSED is presented at most once, or is reported through the agreed non-modal location instead of repeated popups.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100