aws / aws/amazon-q-developer-cli

Access issue invalid config file

Open
#2,939 1 comment 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.6.1 (24G90)

### Expected behaviour

Q says everything is good, I get the following error each time I try to start a development session
Amazon Q is having trouble responding right now:
0: Failed to send the request: unhandled error (AccessDeniedException)
1: unhandled error (AccessDeniedException)
2: service error
3: unhandled error (AccessDeniedException)
4: Error { code: "AccessDeniedException", message: "The bearer token included in the request is invalid.", aws_request_id: "111b7bde-e41a-4caa-b501-e0f36f554901" }

Location:
crates/chat-cli/src/cli/chat/mod.rs:1072

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

### Actual behaviour

0: Failed to send the request: unhandled error (AccessDeniedException)
1: unhandled error (AccessDeniedException)
2: service error
3: unhandled error (AccessDeniedException)
4: Error { code: "AccessDeniedException", message: "The bearer token included in the request is invalid.", aws_request_id: "111b7bde-e41a-4caa-b501-e0f36f554901" }

Location:
crates/chat-cli/src/cli/chat/mod.rs:1072

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

### Steps to reproduce

Start up Q and begin Chat same response.

### Environment

```yaml

[q-details]
version = "1.16.1"
hash = "dad39a19a27fba493d42acb53972d5c721fa1081"
date = "2025-09-17T19:53:46.980195Z (1d ago)"
variant = "full"

[system-info]
os = "macOS 15.6.1 (24G90)"
chip = "Apple M1"
total-cores = 8
memory = "16.00 GB"

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

[env-vars]
PATH = "/Library/Frameworks/Python.framework/Versions/3.12/bin:/usr/local/bin:/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/.local/bin"
QTERM_SESSION_ID = "16d05feab331459a94219bc2c5b79016"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.16.1"
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.