Skip to content

Failed to send the request: unhandled error (AccessDeniedException) #3252

@arunagov

Description

@arunagov

Checks

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

Local mac laptop 
<This will be visible to anyone. Do not include personal or sensitive information>

[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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions