amazon-q-developer-cli icon indicating copy to clipboard operation
amazon-q-developer-cli copied to clipboard

AccessDeniedException

Open kamalags-apps opened this issue 10 months ago • 3 comments

Checks

Operating system

macOS 26.2.0 (25C56)

Expected behaviour

open

Actual behaviour

Kiro is having trouble responding right now: 0: Failed to send the request: An unknown error occurred: AccessDeniedException 1: An unknown error occurred: AccessDeniedException 2: unhandled error (AccessDeniedException) 3: service error 4: unhandled error (AccessDeniedException) 5: Error { code: "AccessDeniedException", message: "The bearer token included in the request is invalid.", aws_request_id: "11832ff7-eb6b-4ee2-8b2b-b8212e4c368e" }

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

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

kiro-cli doctor

Kiro is having trouble responding right now: 0: Failed to send the request: An unknown error occurred: AccessDeniedException 1: An unknown error occurred: AccessDeniedException 2: unhandled error (AccessDeniedException) 3: service error 4: unhandled error (AccessDeniedException) 5: Error { code: "AccessDeniedException", message: "The bearer token included in the request is invalid.", aws_request_id: "2c05ba97-52fc-47a9-a9ca-d4b2291e46b3" }

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

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

kiro-cli restart

Kiro is having trouble responding right now: 0: Failed to send the request: An unknown error occurred: AccessDeniedException 1: An unknown error occurred: AccessDeniedException 2: unhandled error (AccessDeniedException) 3: service error 4: unhandled error (AccessDeniedException) 5: Error { code: "AccessDeniedException", message: "The bearer token included in the request is invalid.", aws_request_id: "85228248-da8b-402d-9b05-cbc17d31e457" }

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

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

Steps to reproduce

$ kiro-cli

open this error appears

Environment

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

[q-details]
version = "1.23.1"
hash = "faddc2c7ee17078025a62a8dfad6543a4154d2fa"
date = "2025-12-23T20:47:25.898591Z (13d ago)"
variant = "full"

[system-info]
os = "macOS 26.2.0 (25C56)"
chip = "Apple M1 Pro"
total-cores = 10
memory = "32.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 = "/Users/USER/.rvm/gems/ruby-3.1.0/bin:/Users/USER/.rvm/gems/ruby-3.1.0@global/bin:/Users/USER/.rvm/rubies/ruby-3.1.0/bin:/Users/USER/.local/state/fnm_multishells/3053_1767649171903/bin:/opt/homebrew/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/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/pmk/env/global/bin:/Users/USER/Library/Application Support/JetBrains/Toolbox/scripts:/Users/USER/.local/bin:/Users/USER/.toolbox/bin:/Users/USER/.rvm/bin:/Users/USER/.local/bin"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.apple.Terminal"

kamalags-apps avatar Jan 05 '26 21:01 kamalags-apps

Had the same issue on Mac. tried: kiro-cli logout kiro-cli login -> problem still persists

I manually uninstalled the old q installation and all of kiro. Removed the still present q symlink from Users/$USER/.local/bin and installed with curl -fsSL https://cli.kiro.dev/install | bash (or download the script and run with --force) -> problem still persists

kiro-cli logout kiro-cli login -> now it worked again

mnwk avatar Jan 07 '26 10:01 mnwk

same issue with kiro-cli (kiro-ide works well). Isn't solved by:

kiro-cli logout
kiro-cli login

gilinachum avatar Jan 08 '26 22:01 gilinachum

same for me on Linux 6.6.114.1-microsoft-standard-WSL2 - Ubuntu 24.04.4 LTS

AccessDeniedException (request_id: 7b9fc265-5d1b-473e-a1f2-1672ca7fccba)

no diff between AWS Builder ID and Google-Account

[q-details] version = "2.3.0" hash = "a44742ad7a3acc79eac7459c2986103a8ad2b756" date = "2026-05-07T04:39:57.828561Z (12d ago)" variant = "minimal"

cr-solutions avatar May 18 '26 19:05 cr-solutions