Hacktoberfest 2026:维护者为十月标记出来的 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 个 reaction 已指派 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 天 7 小时
30 天内合并 PR
82

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

googleapis/python-genai 的其他 Issue

查看 googleapis/python-genai 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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