{"record":{"id":"9efdd06017a24773","repo":"paperclipai/paperclip","slug":"plugin-bridge-is-not-enabled","errorCode":null,"errorMessage":"Plugin bridge is not enabled","messagePattern":"Plugin bridge is not enabled","errorType":"http","errorClass":null,"httpStatus":501,"severity":"error","filePath":"server/src/routes/plugins.ts","lineNumber":1402,"sourceCode":"   * Response: The raw result from the worker's `getData` handler\n   *\n   * Error response body follows the `PluginBridgeError` shape:\n   * `{ code: PluginBridgeErrorCode, message: string, details?: unknown }`\n   *\n   * Errors:\n   * - 400 if request validation fails\n   * - 404 if plugin not found\n   * - 501 if bridge deps are not configured\n   * - 502 if the worker is unavailable or returns an error\n   *\n   * @see PLUGIN_SPEC.md §13.8 — `getData`\n   * @see PLUGIN_SPEC.md §19.7 — Error Propagation Through The Bridge\n   */\n  router.post(\"/plugins/:pluginId/bridge/data\", async (req, res) => {\n    assertBoardOrgAccess(req);\n\n    if (!bridgeDeps) {\n      res.status(501).json({ error: \"Plugin bridge is not enabled\" });\n      return;\n    }\n\n    const { pluginId } = req.params;\n\n    // Resolve plugin\n    const plugin = await resolvePlugin(registry, pluginId);\n    if (!plugin) {\n      res.status(404).json({ error: \"Plugin not found\" });\n      return;\n    }\n\n    // Validate plugin is in ready state\n    if (plugin.status !== \"ready\") {\n      const bridgeError: PluginBridgeErrorResponse = {\n        code: \"WORKER_UNAVAILABLE\",\n        message: `Plugin is not ready (current status: ${plugin.status})`,\n      };","sourceCodeStart":1384,"sourceCodeEnd":1420,"githubUrl":"https://github.com/paperclipai/paperclip/blob/a7e689b3c35347b529cb9f54c9b9a8575a3dcab6/server/src/routes/plugins.ts#L1384-L1420","documentation":"501 from POST /plugins/:pluginId/bridge/data. Fires when the bridge dependencies (worker bridge) are not configured for this instance, so plugin bridge data calls are not available at all; matches the PluginBridgeError contract.","triggerScenarios":"Thrown at server/src/routes/plugins.ts:1386 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the request so it satisfies the condition stated in the error message, then retry; see the throwing line in the named file for the exact check."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a7e689b3c35347b529cb9f54c9b9a8575a3dcab6","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}