Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Batch API: job with 446 inline image requests SUCCEEDED but batches.get returns no dest/inlinedResponses (results lost)

オープン
#3,100 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Venkaiahbabuneelam がすでに取り組んでいます。

2026年10月12日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
api

調査の方向性

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 の本文から書いたものです。

説明

priority: p2 status:awaiting user response type: bug

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

  1. 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").
  2. Wait for BATCH_STATE_SUCCEEDED in batches.list.
  3. 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googleapis/python-genai のほかの issue

googleapis/python-genai の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。