aws / aws/aws-toolkit-vscode

ECONNREFUSED ::1:443 error in Amazon Q agentic AI after previously working

Open
#7,653 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2k
Forks
807
Avg merge
10h 12m
Merged PRs (30d)
7

Description

## Problem
Amazon Q with agentic AI was working fine in Visual Studio Code (version 1.102.0), but after some time, it started throwing the following error:
**connect ECONNREFUSED ::1:443**

## Steps to reproduce the issue

Go Amazon Q chat and type anything, it will give error.

---

### Expected Behavior

Amazon Q agentic AI should start its local server and connect to `::1:443` without failure.

---

### Actual Behavior

Fails with `ECONNREFUSED ::1:443` even though the system can bind to that port.

---

### Additional Notes

This appears to be a regression or internal failure in the agentic AI server startup logic. Please advise on how to debug or resolve this further.

## System details (run `AWS: About` and/or `Amazon Q: About`)

Version: 1.102.0 (user setup)
Date: 2025-07-09T22:10:34.600Z
Electron: 35.6.0
ElectronBuildId: 11847422
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.26100
AWS ToolKit - 3.68.0
Amazon Q - 1.83.0

### What I’ve Tried

- ✅ Confirmed that `::1:443` is accessible (tested with a local Node.js HTTPS server).
- ✅ Cleared all Amazon Q and AWS Toolkit cache folders:
- ✅ Reinstalled Amazon Q extension (latest version).
- ✅ Tried clean VS Code profile (`--user-data-dir`).
- ✅ Disabled IPv6 and tested.
- ✅ Verified no firewall or antivirus is blocking the port.
- ✅ Confirmed no other process is using port 443.
- ✅ Checked proxy settings and added `localhost,127.0.0.1,::1` to No Proxy list.

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the failure in VS Code 1.102.0 with Amazon Q 1.83.0, then use AWS: About and Amazon Q: About to confirm the reported versions and inspect the agentic AI startup path. Done means Amazon Q chat accepts a request without the ECONNREFUSED ::1:443 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript, vscode
Domain
ai, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.