--debug has no effect; service error name, HTTP status and request ID never reach the terminal
I maintainer di solito rispondono entro 1 giorno
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
Description
--debug is registered as a global flag ("debug logging"), but nothing reads its value, so passing it changes nothing.
- Flag definition:
src/handlers/keys.tsx#L21, registered atsrc/handlers/index.tsx#L71. No non-test code readsDebugKey. - The root error handler prints only
Error: ${error.message}(src/runnable/index.tsx#L55). - For AWS service errors,
AgentCoreCLIError.fromErrorkeeps the error name and$metadata(HTTP status, request ID) inmeta, but these are written only to~/.agentcore/logs/.
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
- Run any command that gets a service error, with
--debug, for example:
agentcore harness get --id doesnotexist0000 --debug - 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:
-
--debugprints error name, HTTP status and request ID for service errors. - Default (non-debug) output is unchanged.
- Or, if
--debugis 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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di aws/agentcore-cli
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
aws/agentcore-cli#2940 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
aws/agentcore-cli#2939 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
aws/agentcore-cli#2938 ·
I maintainer di solito rispondono entro 1 giorno
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")Forse già presa @n1dhruv l’ha presa 6 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
aws/agentcore-cli#2875 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
`agentcore dev` container fails with LoginTokenLoadError when using `aws login` credentialsForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
aws/agentcore-cli#2606 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di aws/agentcore-cli
Issue simili
-
bot:ai-assisted component:faucet status:untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
midnightntwrk/midnight-faucet-api#222 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
bluesky-social/social-app#12545 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
knaw-huc/textannoviz#742 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
cloudflare/realtimekit-ui#219 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
cdklabs/cdk-nextjs#365 ·
I maintainer di solito rispondono entro 1 giorno