500 on session create returns raw exception text to the caller

Đang mở
#8,250 5 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

@surajksharma07 đang làm issue này rồi.

Từ ngày 19/11/2026.

  • #8251 của @ishan-1010 — đang mở
  • #8340 của @ishan-1010 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
Python
Star
22.3k
Fork
4.4k
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của google/adk-python

Tất cả issue của google/adk-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.