aws / aws/amazon-q-developer-cli

AccessDeniedException

Open
#1,310 4 comments 2 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.1 (24E263)

### Expected behaviour

I open a chat session on a Mac terminal with `q chat` and issue a request

### Actual behaviour

I get this error on every request:

```
Amazon Q is having trouble responding right now:
0: unhandled error (AccessDeniedException)
1: service error
2: unhandled error (AccessDeniedException)
3: Error { code: "AccessDeniedException", message: "User is not authorized to make this call.", aws_request_id: "929287ed-9bbc-4f98-a04d-ce3aa883875d" }

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

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

### Steps to reproduce

_No response_

### Environment

```yaml

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

[system-info]
os = "macOS 15.4.1 (24E263)"
chip = "Apple M2 Max"
total-cores = 12
memory = "32.00 GB"

[environment]
cwd = "/Users/USER/Documents/Work/Toptal/Aliro/git.nosync/aliro-orchestrator"
cli-path = "/Users/USER/Documents/Work/Toptal/Aliro/git.nosync/aliro-orchestrator"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "macOS"
install-method = "unknown"

[env-vars]
DISPLAY = "/private/tmp/com.apple.launchd.FyFDbNAdp7/org.xquartz:0"
PATH = "/Users/USER/.codeium/windsurf/bin:/opt/homebrew/opt/maven@3.5/bin:/Users/USER/miniconda3/condabin:/Users/USER/.nvm/versions/node/v18.14.2/bin:/Users/USER/.sdkman/candidates/java/current/bin:/opt/homebrew/opt/node@16/bin:/opt/homebrew/opt/maven@3.5/bin:/Users/USER/Library/Android/sdk/platform-tools:/opt/homebrew/opt/node@12/bin:/Users/USER/Documents/Work/Toptal/Engage/git/scripts/bin:/Users/USER/.local/bin:/Users/USER/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/USER/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:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/opt/liquibase:/Users/USER/.local/bin"
QTERM_SESSION_ID = "5319291804654a0bb925ce12bf8bc2c2"
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.