--debug has no effect; service error name, HTTP status and request ID never reach the terminal

Aperta Adatta ai principianti
#2,874 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@abhiramshaji-cyber ci sta già lavorando.

Dal 23/11/2026.

  • #2894 di @abhiramshaji-cyber — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
aws, typescript
Ambito
cli

Direzione di ricerca

Parti dal gestore degli errori radice in src/runnable/index.tsx (intorno alla riga 55), dove viene stampato solo error.message, poi guarda AgentCoreCLIError.fromError, che mantiene il nome dell’errore e $metadata in meta per gli errori dei servizi AWS. Traccia come il flag globale definito in src/handlers/keys.tsx#L21 e registrato in src/handlers/index.tsx#L71 potrebbe raggiungere quel gestore, e aggiungi nome, stato, request ID e il percorso del file di log solo quando è impostato. Fatto quando compare l’output di esempio --debug dell’issue e l’output predefinito è invariato byte per byte; esegui i test runnable ed error esistenti per confermare.

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

Descrizione

bug
Description

--debug is registered as a global flag ("debug logging"), but nothing reads its value, so passing it changes nothing.

So when a service call fails, there is no way to see the HTTP status or request ID in the terminal, with or without --debug.

Steps to Reproduce
  1. Run any command that gets a service error, with --debug, for example:
    agentcore harness get --id doesnotexist0000 --debug
  2. Run it again without --debug.
Expected Behavior

Default output stays as it is. With --debug, the error output also includes the error name, HTTP status and request ID (and ideally the path of the log file that has the full entry), for example:

Error: <message>
  name: ResourceNotFoundException  status: 404  requestId: <id>
  details: ~/.agentcore/logs/<file>
Actual Behavior

Both runs print only Error: <message>. The details exist only in the log file.

CLI Version

1.1.0 (same in 1.0.1)

Operating System

Linux

Additional Context

Acceptance:

  • --debug prints error name, HTTP status and request ID for service errors.
  • Default (non-debug) output is unchanged.
  • Or, if --debug is not meant to do this, remove or re-describe the flag so it doesn't advertise "debug logging".
Lingua principale
TypeScript
Stelle
339
Fork
129
Merge medio
19h 21m
PR unite (30g)
125

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di aws/agentcore-cli

Tutte le issue di aws/agentcore-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.