{"record":{"id":"1c94ed72f9a4c8ab","repo":"deepseek-ai/deepseek-harness","slug":"llm-deepseek-filesapitimeoutms-must-be-a-positive","errorCode":null,"errorMessage":"llm-deepseek: filesApiTimeoutMs must be a positive finite number no greater than ${MAX_TIMER_DELAY_MS}","messagePattern":"llm-deepseek: filesApiTimeoutMs must be a positive finite number no greater than (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/llm/llm-deepseek/src/index.ts","lineNumber":335,"sourceCode":"    ?? DEFAULT_INLINE_IMAGE_OFFLOAD_BYTE_QUANTUM\n  if (!Number.isSafeInteger(inlineImageOffloadByteQuantum) || inlineImageOffloadByteQuantum <= 0) {\n    throw new Error('llm-deepseek: inlineImageOffloadByteQuantum must be a positive safe integer')\n  }\n  if (inlineImageOffloadByteQuantum > maxInlineRequestImageBytes) {\n    throw new Error('llm-deepseek: inlineImageOffloadByteQuantum must not exceed maxInlineRequestImageBytes')\n  }\n  const imageOffloadCountQuantum = config.imageOffloadCountQuantum ?? DEFAULT_IMAGE_OFFLOAD_COUNT_QUANTUM\n  if (!Number.isSafeInteger(imageOffloadCountQuantum) || imageOffloadCountQuantum <= 0) {\n    throw new Error('llm-deepseek: imageOffloadCountQuantum must be a positive safe integer')\n  }\n  if (imageOffloadCountQuantum > maxImagesPerRequest) {\n    throw new Error('llm-deepseek: imageOffloadCountQuantum must not exceed maxImagesPerRequest')\n  }\n  const filesApiTimeoutMs = config.filesApiTimeoutMs ?? DEFAULT_FILES_API_TIMEOUT_MS\n  if (!Number.isFinite(filesApiTimeoutMs)\n    || filesApiTimeoutMs <= 0\n    || filesApiTimeoutMs > MAX_TIMER_DELAY_MS) {\n    throw new Error(\n      `llm-deepseek: filesApiTimeoutMs must be a positive finite number no greater than ${MAX_TIMER_DELAY_MS}`,\n    )\n  }\n  const fileExpiresAfterSeconds = config.fileExpiresAfterSeconds ?? DEFAULT_FILE_EXPIRY_SECONDS\n  if (!Number.isSafeInteger(fileExpiresAfterSeconds)\n    || fileExpiresAfterSeconds < 3_600\n    || fileExpiresAfterSeconds > 2_592_000) {\n    throw new Error('llm-deepseek: fileExpiresAfterSeconds must be an integer from 3600 through 2592000')\n  }\n  const fileRefreshMarginSeconds = config.fileRefreshMarginSeconds ?? DEFAULT_FILE_REFRESH_MARGIN_SECONDS\n  if (!Number.isSafeInteger(fileRefreshMarginSeconds)\n    || fileRefreshMarginSeconds < 0\n    || fileRefreshMarginSeconds >= fileExpiresAfterSeconds) {\n    throw new Error('llm-deepseek: fileRefreshMarginSeconds must be a non-negative integer below fileExpiresAfterSeconds')\n  }\n  const fileQuotaCleanupBatch = config.fileQuotaCleanupBatch ?? DEFAULT_FILE_QUOTA_CLEANUP_BATCH\n  if (!Number.isSafeInteger(fileQuotaCleanupBatch)\n    || fileQuotaCleanupBatch < 1","sourceCodeStart":317,"sourceCodeEnd":353,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/llm/llm-deepseek/src/index.ts#L317-L353","documentation":"Error \"llm-deepseek: filesApiTimeoutMs must be a positive finite number no greater than ${MAX_TIMER_DELAY_MS}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/llm/llm-deepseek/src/index.ts:335 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set filesApiTimeoutMs to a positive finite number no greater than the stated timer cap."],"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"}