{"record":{"id":"0746f76e4a50c05d","repo":"vercel/ai","slug":"anthropic-batch-options-batchid-results-are-n","errorCode":null,"errorMessage":"Anthropic batch \"${options.batchId}\" results are no longer available.","messagePattern":"Anthropic batch \"(.+?)\" results are no longer available\\.","errorType":"validation","errorClass":"InvalidArgumentError","httpStatus":null,"severity":"error","filePath":"packages/anthropic/src/anthropic-messages-batch.ts","lineNumber":305,"sourceCode":"    options: BatchV4OperationOptions,\n  ): Promise<BatchV4Status> {\n    return convertAnthropicBatchStatus(await this.retrieveBatch(options));\n  }\n\n  async experimental_doGetBatchResults(\n    options: BatchV4OperationOptions,\n  ): 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),","sourceCodeStart":287,"sourceCodeEnd":323,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/anthropic/src/anthropic-messages-batch.ts#L287-L323","documentation":"Error \"Anthropic batch \"${options.batchId}\" results are no longer available.\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/anthropic/src/anthropic-messages-batch.ts:305 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"}