aws / aws/amazon-q-developer-cli
Failed to send the request: unhandled error (AccessDeniedException)
- 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 cli not responding to any questions
### Actual behaviour
q cli is not working . When trying to work with q cli, i get error
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: "a5004a73-f40d-4e52-aef1-c0205f457600" }
Location:
crates/chat-cli/src/cli/chat/mod.rs:1024
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
### Steps to reproduce
enable q cli and send a question to q
### Environment
```yaml
Local mac laptop
[q-details]
version = "1.18.1"
hash = "a46a9baa79edc62d59b078f95d46760d0c68d6c4"
date = "2025-10-13T23:05:39.763695Z (10d 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.13/bin:/Library/Frameworks/Python.framework/Versions/3.10/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:/usr/local/go/bin:/Users/USER/.local/bin:/Users/USER/.local/bin:/Users/USER/Library/Python/3.13/bin:/Users/USER/.local/bin:/Users/USER/Library/Python/3.13/bin"
QTERM_SESSION_ID = "a335dfef8a804161b94386fcf5ed0530"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.18.1"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.apple.Terminal"
```
Contributor guide
Assessment
This issue has not been assessed yet.