aws / aws/amazon-q-developer-cli
Q keeps trying to call the AWS CLI after credentials have expired
- Vorherrschende Sprache
- Rust
- Sterne
- 2k
- Forks
- 439
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### 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 14.7.6 (23H626)
### Expected behaviour
After Q gets an error due to expired credentials (ExpiredTokenException, RequestExpired, etc), it should stop trying and prompt me to sign in again.
### Actual behaviour
After Q gets an error due to expired credentials (ExpiredTokenException, RequestExpired, etc), it keeps making more CLI calls to try and get more information another way.
### Steps to reproduce
1. Sign in to AWS with a token that will expire in one hour.
2. Use Q for more than one hour.
### Environment
```yaml
[q-details]
version = "1.12.4"
hash = "c20df6ad252618bed22508b33914316ea204af26"
date = "2025-07-09T01:17:19.187047Z (9d ago)"
[system-info]
os = "macOS 14.7.6 (23H626)"
chip = "Apple M3 Pro"
total-cores = 12
memory = "36.00 GB"
[environment]
cwd = "/Users/USER"
cli-path = "/Users/USER"
install-method = "unknown"
[env-vars]
PATH = "/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:/Library/Apple/usr/bin:/Users/USER:/Users/USER/Library/Python/3.9/bin:/Users/USER/.local/bin"
QTERM_SESSION_ID = "4d4d7f859528463b956bd2ceb498bdaa"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.12.4"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.apple.Terminal"
```
Beitragsleitfaden
Rechercherichtung
Reproduziere das Problem, indem du dich mit Anmeldedaten anmeldest, die ablaufen, und Q anschließend länger als eine Stunde verwendest; verwende q doctor und q restart wie im Bericht angegeben. Verfolge, wie ExpiredTokenException und RequestExpired nach AWS CLI-Aufrufen behandelt werden. Als abgeschlossen gilt die Aufgabe, wenn Q keine weiteren Aufrufe mehr ausführt und den Benutzer auffordert, sich erneut anzumelden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, rust
- Bereich
- authentication, cli, cloud
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100