500 on session create returns raw exception text to the caller

Aperta
#8,250 5 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

@surajksharma07 ci sta già lavorando.

Dal 19/11/2026.

  • #8251 di @ishan-1010 — aperta
  • #8340 di @ishan-1010 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

core

hi, d61f4281d stopped sending raw exception text back for A2A and the /trigger routes, but the same thing is still happening in a few other places.

In api_server.py, session create has except Exception as e and then raise HTTPException(status_code=500, detail=str(e)). If the session service fails, the caller gets whatever is in the error message. I tried it locally with a session service that raises an error with a file path and a database URL in the message, and the 500 response body had the whole thing.

Same pattern in api_server.py where finalize credentials puts {e} into the detail. In dev_server.py the eval result routes also return the validation error text, through the 404 branch.

I sent #8251 for the session create one. Happy to do the rest in separate PRs if that works.

Lingua principale
Python
Stelle
22.3k
Fork
4.4k
Merge medio
1g 2h
PR unite (30g)
6

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 google/adk-python

Tutte le issue di google/adk-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.