aws / aws/aws-toolkit-vscode

SAM run/debug repeatedly shows ECONNREFUSED

Open
#3,304 2 comments 0 reactions 0 assignees View on GitHub
bug sam
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.

![image](https://user-images.githubusercontent.com/55561878/229536916-a9d85a3f-37b9-411a-b724-f71e512b6b80.png)

## 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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.