{"record":{"id":"9f30541f9be4accd","repo":"paperclipai/paperclip","slug":"label-not-found","errorCode":null,"errorMessage":"Label not found","messagePattern":"Label not found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"server/src/routes/issues.ts","lineNumber":6495,"sourceCode":"      cleanupEligibleAt: workspace.cleanupEligibleAt,\n      cleanupReason: workspace.cleanupReason,\n      config: workspace.config\n        ? {\n            environmentId: workspace.config.environmentId,\n            provisionCommand: workspace.config.provisionCommand,\n            runtimeProvisionCommand: workspace.config.runtimeProvisionCommand,\n            teardownCommand: workspace.config.teardownCommand,\n            cleanupCommand: workspace.config.cleanupCommand,\n            workspaceRuntime: workspace.config.workspaceRuntime,\n            desiredState: workspace.config.desiredState,\n            serviceStates: workspace.config.serviceStates,\n          }\n        : null,\n      metadata: null,\n      runtimeServices: (workspace.runtimeServices ?? [])\n        .filter((service) =>\n          service.status === \"provisioning\" || service.status === \"starting\" || service.status === \"running\"\n        )\n        .map(compactIssueRuntimeService),\n      createdAt: workspace.createdAt,\n      updatedAt: workspace.updatedAt,\n    };\n  }\n\n  // Resolve issue identifiers (e.g. \"PAP-39\") to UUIDs for all /issues/:id routes\n  router.param(\"id\", async (req, res, next, rawId) => {\n    try {\n      req.params.id = await resolveIssueRouteId(rawId);\n      next();\n    } catch (err) {\n      next(err);\n    }\n  });\n\n  // Resolve issue identifiers (e.g. \"PAP-39\") to UUIDs for company-scoped attachment routes.\n  router.param(\"issueId\", async (req, res, next, rawId) => {","sourceCodeStart":6477,"sourceCodeEnd":6513,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/issues.ts#L6477-L6513","documentation":"404 sentinel passed to getAccessibleResource on DELETE /labels/:labelId: no label with that id was found, so there is nothing to delete.","triggerScenarios":"Thrown at server/src/routes/issues.ts:6189 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":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}