{"record":{"id":"551038b65e090b00","repo":"deepseek-ai/deepseek-harness","slug":"path-retryablecodes-must-not-contain-duplicates","errorCode":null,"errorMessage":"${path}.retryableCodes must not contain duplicates","messagePattern":"(.+?)\\.retryableCodes must not contain duplicates","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/llm/llm/src/retry-policy.ts","lineNumber":177,"sourceCode":"    })\n  }\n\n  switch (config.mode) {\n    case 'normal': {\n      validateKeys(config, NORMAL_POLICY_KEYS, path)\n      const maxRetries = config.maxRetries ?? DEFAULT_MAX_RETRIES\n      const retryableCodes = config.retryableCodes ?? [...DEFAULT_RETRYABLE_CODES]\n      if (!Number.isSafeInteger(maxRetries) || maxRetries < 0) {\n        throw new Error(`${path}.maxRetries must be a non-negative safe integer`)\n      }\n      if (retryableCodes.length === 0) {\n        throw new Error(`${path}.retryableCodes must not be empty`)\n      }\n      if (retryableCodes.some(code => typeof code !== 'string' || code.length === 0)) {\n        throw new Error(`${path}.retryableCodes must contain only non-empty strings`)\n      }\n      if (new Set(retryableCodes).size !== retryableCodes.length) {\n        throw new Error(`${path}.retryableCodes must not contain duplicates`)\n      }\n      return Object.freeze({\n        mode: 'normal',\n        maxRetries,\n        retryableCodes: Object.freeze([...retryableCodes]),\n        ...resolveBackoff(config.backoff, `${path}.backoff`),\n      })\n    }\n    case 'always':\n      validateKeys(config, ALWAYS_POLICY_KEYS, path)\n      return Object.freeze({\n        mode: 'always',\n        ...resolveBackoff(config.backoff, `${path}.backoff`),\n      })\n    default:\n      throw new Error(`${path}.mode must be \"normal\" or \"always\"`)\n  }\n}","sourceCodeStart":159,"sourceCodeEnd":195,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/llm/llm/src/retry-policy.ts#L159-L195","documentation":"Error \"${path}.retryableCodes must not contain duplicates\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/llm/llm/src/retry-policy.ts:177 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove duplicate entries from retryableCodes."],"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"}