500 on session create returns raw exception text to the caller

Offen
#8,250 5 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

@surajksharma07 arbeitet bereits daran.

Seit 19.11.2026.

  • #8251 von @ishan-1010 — offen
  • #8340 von @ishan-1010 — offen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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.

Vorherrschende Sprache
Python
Sterne
22.3k
Forks
4.4k
Ø Merge
1 T. 2 Std.
Gemergte PRs (30 T.)
6

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus google/adk-python

Alle Issues in google/adk-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.