{"record":{"id":"bbccb4074361901d","repo":"vercel/ai","slug":"anthropic-batch-options-batchid-completed-wit","errorCode":null,"errorMessage":"Anthropic batch \"${options.batchId}\" completed without batch output.","messagePattern":"Anthropic batch \"(.+?)\" completed without batch output\\.","errorType":"exception","errorClass":"InvalidResponseDataError","httpStatus":null,"severity":"error","filePath":"packages/anthropic/src/anthropic-messages-batch.ts","lineNumber":312,"sourceCode":"  ): Promise<ReadableStream<BatchV4ItemResult<LanguageModelV4GenerateResult>>> {\n    const batch = await this.retrieveBatch(options);\n\n    if (convertAnthropicBatchStatus(batch).status === 'pending') {\n      throw new InvalidArgumentError({\n        argument: 'batchId',\n        message: `Anthropic batch \"${options.batchId}\" is not complete.`,\n      });\n    }\n\n    if (batch.archived_at != null) {\n      throw new InvalidArgumentError({\n        argument: 'batchId',\n        message: `Anthropic batch \"${options.batchId}\" results are no longer available.`,\n      });\n    }\n\n    if (batch.results_url == null) {\n      throw new InvalidResponseDataError({\n        data: batch,\n        message: `Anthropic batch \"${options.batchId}\" completed without batch output.`,\n      });\n    }\n\n    const { value: lines } = await getFromApi({\n      url: batch.results_url,\n      validateUrl: true,\n      credentialedOrigin: this.config.baseURL,\n      trustedOrigin: this.config.baseURL,\n      headers: await this.getBatchHeaders(options.headers),\n      failedResponseHandler: anthropicFailedResponseHandler,\n      successfulResponseHandler: createJsonLinesResponseHandler(\n        anthropicBatchResultLineSchema,\n      ),\n      abortSignal: options.abortSignal,\n      fetch: this.config.fetch,\n    });","sourceCodeStart":294,"sourceCodeEnd":330,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/anthropic/src/anthropic-messages-batch.ts#L294-L330","documentation":"Error \"Anthropic batch \"${options.batchId}\" completed without batch output.\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/anthropic/src/anthropic-messages-batch.ts:312 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"69428b1f8b037e4d118fb4853428d5c4e620493c","analyzedAt":"2026-08-30T12:32:21.016Z","schemaVersion":2},"datasetVersion":"2026-08-30T13:17:10.514Z"}