{"record":{"id":"9af3873613a3b0a8","repo":"paperclipai/paperclip","slug":"provider-vault-not-found","errorCode":null,"errorMessage":"Provider vault not found","messagePattern":"Provider vault not found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"server/src/routes/secrets.ts","lineNumber":473,"sourceCode":"    const existing = await getAccessibleResource(req, res, svc.getProviderConfigById(req.params.id as string), \"Provider vault not found\");\n    if (!existing) return;\n    res.json(existing);\n  });\n\n  router.patch(\"/secret-provider-configs/:id\", validate(updateSecretProviderConfigSchema), async (req, res) => {\n    assertBoard(req);\n    const id = req.params.id as string;\n    const existing = await getAccessibleResource(req, res, svc.getProviderConfigById(id), \"Provider vault not found\");\n    if (!existing) return;\n\n    const updated = await svc.updateProviderConfig(id, {\n      displayName: req.body.displayName,\n      status: req.body.status,\n      isDefault: req.body.isDefault,\n      config: req.body.config,\n    });\n    if (!updated) {\n      res.status(404).json({ error: \"Provider vault not found\" });\n      return;\n    }\n\n    await logActivity(db, {\n      companyId: updated.companyId,\n      actorType: \"user\",\n      actorId: req.actor.userId ?? \"board\",\n      action: \"secret_provider_config.updated\",\n      entityType: \"secret_provider_config\",\n      entityId: updated.id,\n      details: {\n        provider: updated.provider,\n        displayName: updated.displayName,\n        status: updated.status,\n        isDefault: updated.isDefault,\n      },\n    });\n","sourceCodeStart":455,"sourceCodeEnd":491,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/routes/secrets.ts#L455-L491","documentation":"Error \"Provider vault not found\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at server/src/routes/secrets.ts:463 when the library encounters an invalid state.","commonSituations":"Returned when a secrets operation references a provider vault that has not been created for the company.","solutions":["Create the provider vault for the company before storing or reading provider secrets.","Verify the vault id/provider name in the request is correct for this company."],"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-14T00:17:10.932Z"}