aws / aws/amazon-q-developer-cli
bug: AWS SSO login failed, No code received on redirect
- 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
### Expected behaviour
Login successfully.
### Actual behaviour
```
RUST_BACKTRACE=full q login -v
✔ Select login method · Use with Pro license
✔ Enter Start URL · https://hsdp-poc.awsapps.com/start
✔ Enter Region · us-east-1
Logging in...error:
0: No code received on redirect
Location:
crates/q_cli/src/cli/user.rs:292
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⋮ 5 frames hidden ⋮
6: q_cli::cli::user::login_interactive::{{closure}}::h5f3179b948c864f3
at :
7: q_cli::cli::user::RootUserSubcommand::execute::{{closure}}::h61394a643c9a9bc1
at :
8: q_cli::cli::Cli::execute::{{closure}}::h669e0eabd4a3f494
at :
9: q_cli::main::{{closure}}::hbb0b24b41b3ed5b0
at :
10: tokio::runtime::scheduler::current_thread::Context::enter::h0cfa222242e32c98
at :
11: std::thread::local::LocalKey::with::h42b70eb78db7665d
at :
12: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h592c6f175c706e67
at :
13: tokio::runtime::context::runtime::enter_runtime::hf6f643c5394d90d7
at :
14: tokio::runtime::runtime::Runtime::block_on::hd9dec12b1bd8f462
at :
15: q_cli::main::h3a1134d86810a7c4
at :
16: std::sys::backtrace::__rust_begin_short_backtrace::h07042d1a0e24c0e2
at :
17: std::rt::lang_start::{{closure}}::hdf9c339112cd9da6
at :
18: std::rt::lang_start_internal::hdff9e551ec0db2ea
at :
19: _main
at :
Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
```
### Steps to reproduce
_No response_
### Environment
```yaml
q diagnostic
[q-details]
version = "1.14.1"
hash = "405e74d10634890cbb26850966d951f87bd5d169"
date = "2025-08-21T19:01:34.398819Z (10d ago)"
variant = "full"
[system-info]
os = "macOS 15.6.1 (24G90)"
chip = "Apple M1"
total-cores = 8
memory = "8.00 GB"
[environment]
cwd = "/Users/USER/Code"
cli-path = "/Users/USER/Code"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "macOS"
install-method = "brew"
[env-vars]
PATH = "/Users/USER/.opencode/bin:/Users/USER/.local/share/mise/installs/neovim/0.10.3/nvim-macos-arm64/bin:/Users/USER/.local/share/mise/installs/python/3.13.5/bin:/Users/USER/.local/share/mise/installs/aws/2.28.1/aws-cli.pkg/Payload/aws-cli:/Users/USER/.local/share/mise/installs/gcloud/534.0.0/bin:/Users/USER/.local/share/mise/installs/gh/2.64.0/gh_2.64.0_macOS_arm64/bin:/Users/USER/.local/share/mise/installs/node/23.5.0/bin:/Users/USER/.local/share/mise/installs/uv/0.8.13/uv-aarch64-apple-darwin:/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:/Users/USER/.local/bin:/Users/USER/.orbstack/bin:/Users/USER/.arkade/bin/"
QTERM_SESSION_ID = "ff7436d6efec4708ba2677392a20517c"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.14.1"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.apple.Terminal"
```
Contributor guide
Assessment
This issue has not been assessed yet.