500 on session create returns raw exception text to the caller

未关闭
#8,250 5 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 3 天内回复

@surajksharma07 已经在做这个了。

开始于 2026年11月19日。

  • #8251 来自 @ishan-1010 —— 未关闭
  • #8340 来自 @ishan-1010 —— 未关闭

评估

这个 Issue 还没有评估数据。

描述

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.

主要语言
Python
星标
22.3k
派生
4.4k
平均合并
1 天 2 小时
30 天内合并 PR
6

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

google/adk-python 的其他 Issue

查看 google/adk-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。