{"record":{"id":"bbb023baa9fb2e87","repo":"paperclipai/paperclip","slug":"user-secret-value-not-found","errorCode":null,"errorMessage":"User secret value not found","messagePattern":"User secret value not found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"server/src/routes/secrets.ts","lineNumber":797,"sourceCode":"      const companyId = req.params.companyId as string;\n      const secretId = req.params.secretId as string;\n      assertCompanyAccess(req, companyId);\n      const ownerUserId = currentUserId(req);\n      const updated = await svc.updateCurrentUserSecretValue(\n        companyId,\n        ownerUserId,\n        secretId,\n        {\n          status: req.body.status,\n          value: req.body.value,\n          externalRef: req.body.externalRef,\n          providerVersionRef: req.body.providerVersionRef,\n          providerConfigId: req.body.providerConfigId,\n        },\n        { userId: ownerUserId, agentId: null },\n      );\n      if (!updated) {\n        res.status(404).json({ error: \"User secret value not found\" });\n        return;\n      }\n\n      await logActivity(db, {\n        companyId,\n        actorType: \"user\",\n        actorId: ownerUserId,\n        action: \"user_secret_value.updated\",\n        entityType: \"secret\",\n        entityId: updated.id,\n        details: {\n          userSecretDefinitionId: updated.userSecretDefinitionId,\n          ownerUserId: updated.ownerUserId,\n          status: updated.status,\n        },\n      });\n\n      res.json(updated);","sourceCodeStart":779,"sourceCodeEnd":815,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/secrets.ts#L779-L815","documentation":"Error \"User secret value not found\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at server/src/routes/secrets.ts:786 when the library encounters an invalid state.","commonSituations":"Returned when reading a user secret whose definition exists but whose value has not been set.","solutions":["Set a value for the secret; the definition exists but no value has been stored.","Verify you are reading the secret for the correct company/user scope."],"exampleFix":null,"handlingStrategy":null,"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"}