{"record":{"id":"30e0e8b62e864a58","repo":"deepseek-ai/deepseek-harness","slug":"subprocess-e2b-executable-json-stringify-comman","errorCode":null,"errorMessage":"subprocess-e2b: executable ${JSON.stringify(command)} did not resolve to one absolute path","messagePattern":"subprocess-e2b: executable (.+?) did not resolve to one absolute path","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/e2b/subprocess-e2b/src/index.ts","lineNumber":133,"sourceCode":"      )\n      signal?.throwIfAborted()\n      return command\n    }\n    if (command.includes('/')) {\n      throw new Error(\n        `subprocess-e2b: command ${JSON.stringify(command)} is a relative path; use an absolute path or a bare PATH name`,\n      )\n    }\n    const path = env?.PATH\n    const prefix = path === undefined ? '' : `PATH=${quoteE2BShellArg(path)} `\n    const result = await sandbox.commands.run(\n      `${prefix}command -v -- ${quoteE2BShellArg(command)}`,\n      { cwd: this.ctx.e2b.cwd, envs: e2bControlEnvs(), ...signalOpts(signal) },\n    )\n    signal?.throwIfAborted()\n    const executable = result.stdout.trim()\n    if (executable.includes('\\n') || (!posix.isAbsolute(executable) && !executable.includes('/'))) {\n      throw new Error(`subprocess-e2b: executable ${JSON.stringify(command)} did not resolve to one absolute path`)\n    }\n    // A relative result comes from a relative PATH entry; the lookup ran with the shared cwd.\n    return posix.resolve(this.ctx.e2b.cwd, executable)\n  }\n\n  /** @inheritdoc */\n  spawn(spec: SubprocessSpawnSpec): SubprocessHandle {\n    if (this.disposing) throw new Error('subprocess-e2b: service is disposing')\n    const program = spec.argv[0]\n    if (program === undefined || program.length === 0) {\n      throw new Error('invalid argv: expected a non-empty program name at argv[0]')\n    }\n    requireRepresentableGrace(spec.graceMs)\n    if (spec.signal?.aborted === true) {\n      throw new Error(`aborted before spawn: ${String(spec.signal.reason)}`)\n    }\n    const stateDir = posix.join(this.ctx.e2b.runtimeRoot, 'processes', randomUUID())\n    const handle = new E2BSubprocessHandle(this.ctx.e2b, spec, stateDir, this.pollMs)","sourceCodeStart":115,"sourceCodeEnd":151,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/e2b/subprocess-e2b/src/index.ts#L115-L151","documentation":"Error \"subprocess-e2b: executable ${JSON.stringify(command)} did not resolve to one absolute path\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/e2b/subprocess-e2b/src/index.ts:133 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"}