{"record":{"id":"149b40c542ad58e6","repo":"deepseek-ai/deepseek-harness","slug":"dsh-e2b-timeoutms-must-be-a-positive-finite-numbe","errorCode":null,"errorMessage":"dsh-e2b: timeoutMs must be a positive finite number","messagePattern":"dsh-e2b: timeoutMs must be a positive finite number","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/e2b/e2b/src/index.ts","lineNumber":147,"sourceCode":"   */\n  async getSandbox(): Promise<Sandbox> {\n    if (this.disposed) throw new Error('E2B sandbox service is disposing')\n    const sandbox = await this.ready\n    // Disposal can race the awaited sandbox readiness despite the synchronous precheck.\n    // oxlint-disable-next-line typescript/no-unnecessary-condition -- Awaiting readiness yields to disposal.\n    if (this.disposed) throw new Error('E2B sandbox service is disposing')\n    return sandbox\n  }\n\n  private validate(): void {\n    if (this.config.apiKey.length === 0) {\n      throw new Error('dsh-e2b: configure apiKey or set E2B_API_KEY')\n    }\n    if (!posix.isAbsolute(this.config.cwd)) {\n      throw new Error(`dsh-e2b: cwd must be an absolute Linux path: ${this.config.cwd}`)\n    }\n    if (!Number.isFinite(this.config.timeoutMs) || this.config.timeoutMs <= 0) {\n      throw new Error('dsh-e2b: timeoutMs must be a positive finite number')\n    }\n  }\n\n  private async open(): Promise<Sandbox> {\n    const sandbox = await Sandbox.create({\n      apiKey: this.config.apiKey,\n      timeoutMs: this.config.timeoutMs,\n      secure: true,\n      lifecycle: { onTimeout: 'kill' },\n    })\n    try {\n      await sandbox.files.makeDir(this.cwd)\n      await sandbox.files.makeDir(this.runtimeRoot)\n      const runtimeRoot = await sandbox.files.getInfo(this.runtimeRoot)\n      if (runtimeRoot.type !== FileType.DIR || runtimeRoot.symlinkTarget !== undefined) {\n        throw new Error(`dsh-e2b: runtime root must be a real directory: ${this.runtimeRoot}`)\n      }\n      await sandbox.commands.run(","sourceCodeStart":129,"sourceCodeEnd":165,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/e2b/e2b/src/index.ts#L129-L165","documentation":"Error \"dsh-e2b: timeoutMs must be a positive finite number\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/e2b/e2b/src/index.ts:147 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":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}