paperclipai/paperclip · error

User secret value not found

Error message

User secret value not found

What it means

Error "User secret value not found" thrown in paperclipai/paperclip.

Source

Thrown at server/src/routes/secrets.ts:797

      const companyId = req.params.companyId as string;
      const secretId = req.params.secretId as string;
      assertCompanyAccess(req, companyId);
      const ownerUserId = currentUserId(req);
      const updated = await svc.updateCurrentUserSecretValue(
        companyId,
        ownerUserId,
        secretId,
        {
          status: req.body.status,
          value: req.body.value,
          externalRef: req.body.externalRef,
          providerVersionRef: req.body.providerVersionRef,
          providerConfigId: req.body.providerConfigId,
        },
        { userId: ownerUserId, agentId: null },
      );
      if (!updated) {
        res.status(404).json({ error: "User secret value not found" });
        return;
      }

      await logActivity(db, {
        companyId,
        actorType: "user",
        actorId: ownerUserId,
        action: "user_secret_value.updated",
        entityType: "secret",
        entityId: updated.id,
        details: {
          userSecretDefinitionId: updated.userSecretDefinitionId,
          ownerUserId: updated.ownerUserId,
          status: updated.status,
        },
      });

      res.json(updated);

View on GitHub (pinned to 01ad858492)

Solutions

  1. Set a value for the secret; the definition exists but no value has been stored.
  2. Verify you are reading the secret for the correct company/user scope.

When it happens

Trigger: Thrown at server/src/routes/secrets.ts:786 when the library encounters an invalid state.

Common situations: Returned when reading a user secret whose definition exists but whose value has not been set.


AI-assisted analysis of paperclipai/paperclip@01ad858492 (2026-08-18). Data as JSON: /api/errors/bbb023baa9fb2e87. Report an issue: GitHub.