Batch API: job with 446 inline image requests SUCCEEDED but batches.get returns no dest/inlinedResponses (results lost)
メンテナーはふだん 1 日以内に返信
@Venkaiahbabuneelam がすでに取り組んでいます。
2026年10月12日 から。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 4k
- フォーク
- 1k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 73
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googleapis/python-genai のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
googleapis/python-genai#3105 ·
メンテナーはふだん 1 日以内に返信
-
Curated history keeps half a user turn when the model turn is invalid対応中かも @Venkaiahbabuneelam が 8 日前に担当しました。 オープンpriority: p2 status:awaiting user response type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
googleapis/python-genai#3051 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: Unsubscripted typing.List and typing.Dict crash convert_if_exist_pydantic_model in AFC対応中かも @Venkaiahbabuneelam が 8 日前に担当しました。 オープンpriority: p2 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
googleapis/python-genai#3044 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Name collision in google.genai.interactions: triggers.Interaction shadows response model Interaction in static type checkers対応中かも @Venkaiahbabuneelam が 15 日前に担当しました。 オープンpriority: p2 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
googleapis/python-genai#3013 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[Live API] Vertex gemini-3.8-live: input_transcription returns model text instead of caller audio after mid-session send_client_content対応中かも @Venkaiahbabuneelam が 4 日前に担当しました。 オープンpriority: p2 type: bug
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
googleapis/python-genai#3078 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
googleapis/python-genai の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
huggingface/peft#3955 ·
メンテナーはふだん 1 日以内に返信
-
author-page correction
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
acl-org/acl-anthology#10313 ·
メンテナーはふだん 1 日以内に返信
-
anime duplicate exception request-theme
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
LizardByte/ThemerrDB#8926 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
huggingface/transformers#49556 ·
メンテナーはふだん 1 日以内に返信
-
area/security bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
mozilla-ai/otari#2245 ·
メンテナーはふだん 1 日以内に返信