{"record":{"id":"c25d4a5506162795","repo":"paperclipai/paperclip","slug":"skill-version-not-found","errorCode":null,"errorMessage":"Skill version not found","messagePattern":"Skill version not found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"server/src/routes/company-skills.ts","lineNumber":382,"sourceCode":"    }\n    res.json(result);\n  });\n\n  router.get(\"/companies/:companyId/skills/:skillId/versions\", async (req, res) => {\n    const companyId = req.params.companyId as string;\n    const skillId = req.params.skillId as string;\n    assertCompanyAccess(req, companyId);\n    res.json(await svc.listVersions(companyId, skillId));\n  });\n\n  router.get(\"/companies/:companyId/skills/:skillId/versions/:versionId\", async (req, res) => {\n    const companyId = req.params.companyId as string;\n    const skillId = req.params.skillId as string;\n    const versionId = req.params.versionId as string;\n    assertCompanyAccess(req, companyId);\n    const result = await svc.getVersion(companyId, skillId, versionId);\n    if (!result) {\n      res.status(404).json({ error: \"Skill version not found\" });\n      return;\n    }\n    res.json(result);\n  });\n\n  router.get(\"/companies/:companyId/skills/:skillId/test-inputs\", async (req, res) => {\n    const companyId = req.params.companyId as string;\n    const skillId = req.params.skillId as string;\n    assertCompanyAccess(req, companyId);\n    res.json(await svc.listTestInputs(companyId, skillId));\n  });\n\n  router.post(\n    \"/companies/:companyId/skills/:skillId/test-inputs\",\n    validate(companySkillTestInputCreateSchema),\n    async (req, res) => {\n      const companyId = req.params.companyId as string;\n      const skillId = req.params.skillId as string;","sourceCodeStart":364,"sourceCodeEnd":400,"githubUrl":"https://github.com/paperclipai/paperclip/blob/3f1d897a7c018d76563a21c6e39c3c9b03933622/server/src/routes/company-skills.ts#L364-L400","documentation":"Error \"Skill version not found\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at server/src/routes/company-skills.ts:377 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the id in the request path or body refers to an existing record in this company; re-list the parent collection to get a valid id.","Check that the record was not deleted or archived, and that the request is scoped to the correct companyId."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3f1d897a7c018d76563a21c6e39c3c9b03933622","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}