Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#3,100 2 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 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
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api

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ả

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.

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

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 googleapis/python-genai

Tất cả issue của googleapis/python-genai

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.