500 on session create returns raw exception text to the caller

Abierto
#8,250 5 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 3 días

@surajksharma07 ya está trabajando en esto.

Desde el 19/11/2026.

  • #8251 de @ishan-1010 — abierto
  • #8340 de @ishan-1010 — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.

Lenguaje dominante
Python
Estrellas
22.3k
Forks
4.4k
Merge medio
1 d 2 h
PR fusionados (30 d)
6

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de google/adk-python

Todos los issues de google/adk-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.