Batch API: job with 446 inline image requests SUCCEEDED but batches.get returns no dest/inlinedResponses (results lost)
Maintainer thường phản hồi trong vòng 1 ngày
@Venkaiahbabuneelam đang làm issue này rồi.
Từ ngày 12/10/2026.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start by reading the batch retrieval path used by client.batches.get and compare its handling of the v1beta response with the raw REST body described here. Check how batch destinations and inline responses are parsed, and look for related tests covering batches.get. Done means a succeeded job returns accessible results or reports a clear retrieval error when results are missing.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Environment
- google-genai 2.28.0
- Python 3.12.15
- macOS 27.0.1 (arm64)
Describe the bug
A Batch API job with 446 inline requests to gemini-3-pro-image (image output,
2K, 9:16) finished server-side, but its results can't be retrieved.
- Job: batches/m887ve3h1flytwqwubpkogmtx2ngm5lytfus
- Created 2026-10-11 15:43 UTC; batches.list shows BATCH_STATE_SUCCEEDED, ended 15:50 UTC.
- client.batches.get(name=...) returns a job where state is None and dest is None,
so the SDK raises AttributeError ('NoneType' object has no attribute 'name'). - The raw REST GET on v1beta returns only {"name": "...", "done": true} (77 bytes),
with no metadata, response or inlinedResponses. - v1alpha and v1 return 503 UNAVAILABLE intermittently, and the same 77-byte body otherwise.
- I retried every ~90 s for 30+ minutes on all three versions with the same result.
- No output file appears in the Files API.
A job of 126 inline requests on the same project and model, built the same way,
works normally. My guess is that the inline response payload (~4 GB of images)
is too large to be returned by the operation GET.
Expected behavior
Either the results can be retrieved (inline or via an output file), or creation
is rejected / the job fails with a clear size-limit error before images are
generated and billed.
Steps to reproduce
- Create a batch with ~450 InlinedRequest items for gemini-3-pro-image with
response_modalities=["IMAGE"] and image_config(aspect_ratio="9:16", image_size="2K"). - Wait for BATCH_STATE_SUCCEEDED in batches.list.
- Call client.batches.get(name=job.name): state and dest come back None.
Impact
446 images (~USD 30 at batch pricing) were billed and never delivered.
- Ngôn ngữ chính
- Python
- Star
- 4k
- Fork
- 1k
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 82
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của googleapis/python-genai
-
priority: p2 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
googleapis/python-genai#3122 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
FunctionDeclaration.from_callable drops enum and properties from Optional[...] parametersCó thể đã có người làm @Venkaiahbabuneelam đã nhận 1 ngày trước. Đang mởpriority: p2 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
googleapis/python-genai#3105 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Curated history keeps half a user turn when the model turn is invalidCó thể đã có người làm @Venkaiahbabuneelam đã nhận 9 ngày trước. Đang mởpriority: p2 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
googleapis/python-genai#3051 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Unsubscripted typing.List and typing.Dict crash convert_if_exist_pydantic_model in AFCCó thể đã có người làm @Venkaiahbabuneelam đã nhận 9 ngày trước. Đang mởpriority: p2 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
googleapis/python-genai#3044 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Name collision in google.genai.interactions: triggers.Interaction shadows response model Interaction in static type checkersCó thể đã có người làm @Venkaiahbabuneelam đã nhận 16 ngày trước. Đang mởpriority: p2 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
googleapis/python-genai#3013 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của googleapis/python-genai
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Deltares/imod-python#1940 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
effort: low prio: low ready
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
digitalfabrik/integreat-cms#4621 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
ioos/compliance-checker#1375 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
netbox status: backlog topic: testing type: housekeeping
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
netbox-community/netbox#23395 ·
Maintainer thường phản hồi trong vòng 1 ngày