aws / aws/amazon-q-developer-cli

connection reset error when using the q chat CLI

Open
#1,210 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
439
PR merge metrics
No merged PRs in 30d

Description

### Checks

- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again

### Operating system

macOS 15.4.0 (24E248)

### Expected behaviour

## Issue Details
• **Title**: "Connection reset error when using q chat CLI"
• **OS**: macOS 15.3.2 (24D81)
• **Amazon Q CLI Version**: 1.7.3 (built on 2025-04-11)
• **System Info**:
• Apple M1 Pro with 10 cores
• 32GB memory

## Error Description
The issue reports a connection reset error when using the q chat CLI with this specific error message:
Amazon Q is having trouble responding right now:
0: Failed to receive the next message: request_id: e7c00ced-bfe8-4009-a96a-76b3bdaefa5f, error: dispatch failure (io error): request or response body error
1: Failed to receive the next message: request_id: e7c00ced-bfe8-4009-a96a-76b3bdaefa5f, error: dispatch failure (io error): request or response body error
2: dispatch failure (io error): request or response body error
3: dispatch failure (io error): request or response body error
4: dispatch failure
5: io error
6: request or response body error
7: error decoding response body
8: request or response body error
9: error reading a body from connection
10: Connection reset by peer (os error 54)

Location:
crates/q_cli/src/cli/chat/mod.rs:711

## Environment Information
• Working directory: /Volumes/workplace/pnts/src/PrimeNowTipsService
• Shell: zsh 5.9
• Terminal: macOS

## Chat Context
The issue includes information about the chat context at the time of the error:
• The conversation was about adding metrics to an internal wiki
• The error occurred during a conversation about modifying code and adding metrics
• The chat was using trusted tools including execute_bash and fs_write

## Expected vs Actual Behavior
• **Expected**: The q chat CLI should maintain a stable connection and complete the conversation without connection reset errors
• **Actual**: The connection was reset with the error message shown above

### Actual behaviour

## Error Description
The issue reports a connection reset error when using the q chat CLI with this specific error message:
Amazon Q is having trouble responding right now:
0: Failed to receive the next message: request_id: e7c00ced-bfe8-4009-a96a-76b3bdaefa5f, error: dispatch failure (io error): request or response body error
1: Failed to receive the next message: request_id: e7c00ced-bfe8-4009-a96a-76b3bdaefa5f, error: dispatch failure (io error): request or response body error
2: dispatch failure (io error): request or response body error
3: dispatch failure (io error): request or response body error
4: dispatch failure
5: io error
6: request or response body error
7: error decoding response body
8: request or response body error
9: error reading a body from connection
10: Connection reset by peer (os error 54)

Location:
crates/q_cli/src/cli/chat/mod.rs:711

## Environment Information
• Working directory: /Volumes/workplace/pnts/src/PrimeNowTipsService
• Shell: zsh 5.9
• Terminal: macOS

## Chat Context
The issue includes information about the chat context at the time of the error:
• The conversation was about adding metrics to an internal wiki
• The error occurred during a conversation about modifying code and adding metrics
• The chat was using trusted tools including execute_bash and fs_write

## Expected vs Actual Behavior
• **Expected**: The q chat CLI should maintain a stable connection and complete the conversation without connection reset errors
• **Actual**: The connection was reset with the error message shown above

### Steps to reproduce

_No response_

### Environment

```yaml

[q-details]
version = "1.7.3"
hash = "3e4ae79d371315e80ddac772b43fff2cba314104"
date = "2025-04-10T05:48:16.435186Z (3d ago)"
variant = "full"

[system-info]
os = "macOS 15.4.0 (24E248)"
chip = "Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz"
total-cores = 6
memory = "16.00 GB"

[environment]
cwd = "/Users/USER/Documents/ski/.amazonq/rules"
cli-path = "/Users/USER/Documents/ski/.amazonq/rules"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "macOS"
install-method = "unknown"

[env-vars]
PATH = "/opt/homebrew/anaconda3/bin:/usr/local/anaconda3/bin:/usr/local/bin:/usr/local/sbin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/USER/.cargo/bin:/Users/USER/.local/bin:/usr/local/bin:/Users/USER/.toolbox/bin"
QTERM_SESSION_ID = "990b0ce5d764497096b275ab200696e9"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.7.3"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.apple.Terminal"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.