aws / aws/amazon-q-developer-cli

Q keeps trying to call the AWS CLI after credentials have expired

Aperta
#2,335 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
2k
Fork
439
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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"
```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Riproduci il problema effettuando l’accesso con credenziali che scadono e usando poi Q per più di un’ora; usa q doctor e q restart come indicato nel report. Traccia la gestione di ExpiredTokenException e RequestExpired dopo le chiamate AWS CLI. Il lavoro è completato quando Q smette di effettuare ulteriori chiamate e chiede all’utente di effettuare nuovamente l’accesso.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, rust
Ambito
authentication, cli, cloud
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.