{"record":{"id":"1d88987a70484eaa","repo":"ruvnet/ruflo","slug":"subscriptions-are-disabled","errorCode":null,"errorMessage":"Subscriptions are disabled","messagePattern":"Subscriptions are disabled","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/mcp/src/resource-registry.ts","lineNumber":207,"sourceCode":"      }\n\n      this.cache.set(uri, {\n        content: contents,\n        cachedAt: Date.now(),\n        ttl: this.options.cacheTTL,\n      });\n    }\n\n    this.emit('resource:read', { uri, contentCount: contents.length });\n    return { contents };\n  }\n\n  /**\n   * Subscribe to resource updates\n   */\n  subscribe(uri: string, callback: SubscriptionCallback): string {\n    if (!this.options.enableSubscriptions) {\n      throw new Error('Subscriptions are disabled');\n    }\n\n    const existingSubs = this.subscriptions.get(uri) || [];\n    if (existingSubs.length >= this.options.maxSubscriptionsPerResource) {\n      throw new Error(`Maximum subscriptions reached for resource: ${uri}`);\n    }\n\n    const subscriptionId = `sub-${++this.subscriptionCounter}-${Date.now()}`;\n    const subscription: Subscription = {\n      id: subscriptionId,\n      uri,\n      callback,\n      createdAt: new Date(),\n    };\n\n    existingSubs.push(subscription);\n    this.subscriptions.set(uri, existingSubs);\n","sourceCodeStart":189,"sourceCodeEnd":225,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/mcp/src/resource-registry.ts#L189-L225","documentation":"subscribe() was called on a ResourceRegistry built with enableSubscriptions disabled (subscriptions off in registry options). The capability check runs before any subscriber bookkeeping, so the call is rejected as unsupported rather than silently dropped.","triggerScenarios":"Thrown at v3/@claude-flow/mcp/src/resource-registry.ts:207 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable subscriptions in the resource registry configuration before subscribing.","Poll the resource instead of subscribing when subscriptions are disabled."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}