vercel/ai · error · InvalidResponseDataError
Google batch "${options.batchId}" completed without batch ou
Error message
Google batch "${options.batchId}" completed without batch output. What it means
Error "Google batch "${options.batchId}" completed without batch output." thrown in vercel/ai.
Source
Thrown at packages/google/src/google-batch.ts:385
if (inlinedResponses != null) {
return convertAsyncIteratorToReadableStream(
this.iterateBatchResults(
inlinedResponses.map(result => ({
key: result.metadata.key,
response: result.response,
error: result.error,
})),
),
);
}
const responsesFile =
operation.metadata?.output?.responsesFile ??
operation.response?.responsesFile;
if (responsesFile == null) {
if (batchStatus.status === 'completed') {
throw new InvalidResponseDataError({
data: operation,
message: `Google batch "${options.batchId}" completed without batch output.`,
});
}
return new ReadableStream({
start(controller) {
controller.close();
},
});
}
const encodedResponsesFile = responsesFile
.split('/')
.map(segment => encodeURIComponent(segment))
.join('/');
const { value: lines } = await getFromApi({
url: `${this.getBaseOrigin()}/download/v1beta/${encodedResponsesFile}:download?alt=media`,View on GitHub (pinned to 69428b1f8b)
When it happens
Trigger: Thrown at packages/google/src/google-batch.ts:385 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of vercel/ai@69428b1f8b (2026-08-30).
Data as JSON: /api/errors/03cc4555dc3edcce.
Report an issue: GitHub.