{"record":{"id":"efdb21ebe53b4b3f","repo":"diegosouzapw/OmniRoute","slug":"stop-failed","errorCode":"STOP_FAILED","errorMessage":"Failed to stop headroom proxy: ${msg}","messagePattern":"Failed to stop headroom proxy: (.+?)","errorType":"exception","errorClass":"HeadroomError","httpStatus":null,"severity":"error","filePath":"src/lib/headroom/process.ts","lineNumber":175,"sourceCode":"  const pid = getManagedPid();\n  if (!pid) return { stopped: false, reason: \"not_running\" };\n  try {\n    process.kill(pid, \"SIGTERM\");\n    setTimeout(() => {\n      if (isPidAlive(pid)) {\n        try {\n          process.kill(pid, \"SIGKILL\");\n        } catch {\n          // already gone\n        }\n      }\n    }, STOP_GRACE_MS);\n    clearPid();\n    return { stopped: true, pid };\n  } catch (e) {\n    clearPid();\n    const msg = e instanceof Error ? e.message : String(e);\n    throw new HeadroomError(`Failed to stop headroom proxy: ${msg}`, \"STOP_FAILED\");\n  }\n}\n","sourceCodeStart":157,"sourceCodeEnd":178,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/headroom/process.ts#L157-L178","documentation":"Error \"Failed to stop headroom proxy: ${msg}\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/headroom/process.ts:175 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":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}