{"record":{"id":"d214b218c0edbb68","repo":"deepseek-ai/deepseek-harness","slug":"invalid-response","errorCode":"INVALID_RESPONSE","errorMessage":"DeepSeek Files API upload response does not match the submitted image.","messagePattern":"DeepSeek Files API upload response does not match the submitted image\\.","errorType":"exception","errorClass":"LlmError","httpStatus":null,"severity":"error","filePath":"packages/llm/llm-deepseek/src/file-store.ts","lineNumber":203,"sourceCode":"      throw new LlmError('DeepSeek chat image exceeds the 32 MiB per-image limit.', 'INVALID_REQUEST')\n    }\n    const scope = deepSeekFileScope(connection.baseURL, connection.apiKey)\n    const now = this.now()\n    const marginMs = policy.refreshMarginSeconds * 1_000\n    const cached = await this.index.get(scope, version.variantId, now, marginMs)\n    if (cached !== undefined) return { record: cached, uploaded: false }\n\n    const client = this.client(connection)\n    const upload = async (): Promise<DeepSeekUploadRecord> => {\n      const remote = await client.upload({\n        data: version.data,\n        mediaType: version.mediaType,\n        filename: filename(version),\n        expiresAfterSeconds: policy.expiresAfterSeconds,\n        signal,\n      })\n      if (remote.bytes !== version.data.byteLength) {\n        throw new LlmError('DeepSeek Files API upload response does not match the submitted image.', 'INVALID_RESPONSE')\n      }\n      return {\n        scope,\n        attachmentId: version.attachment.attachmentId,\n        variantId: version.variantId,\n        fileId: remote.id,\n        bytes: remote.bytes,\n        createdAt: remote.createdAt * 1_000,\n        expiresAt: remote.expiresAt * 1_000,\n      }\n    }\n\n    let candidate: DeepSeekUploadRecord\n    try {\n      candidate = await upload()\n    } catch (error: unknown) {\n      if (!isFilesQuotaError(error)) throw error\n      const deleted = await this.reclaimOldestOwned(connection, policy.quotaCleanupBatch, signal)","sourceCodeStart":185,"sourceCodeEnd":221,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/llm/llm-deepseek/src/file-store.ts#L185-L221","documentation":"Error \"DeepSeek Files API upload response does not match the submitted image.\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/llm/llm-deepseek/src/file-store.ts:203 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-upload the image and verify the submitted bytes are unchanged in transit."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}