{"record":{"id":"9f738699f5b50d61","repo":"Kuberwastaken/claurst","slug":"rmcp-subscribe-failed","errorCode":null,"errorMessage":"rmcp subscribe '{}' failed: {}","messagePattern":"rmcp subscribe '(.+?)' failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src-rust/crates/mcp/src/rmcp_backend.rs","lineNumber":586,"sourceCode":"            let args = arguments\n                .into_iter()\n                .map(|(key, value)| (key, Value::String(value)))\n                .collect();\n            params = params.with_arguments(args);\n        }\n        let result = self\n            .peer\n            .get_prompt(params)\n            .await\n            .map_err(|e| anyhow::anyhow!(\"rmcp get_prompt '{}' failed: {}\", name, e))?;\n        Ok(convert_get_prompt_result(result))\n    }\n\n    async fn subscribe_resource(&self, uri: &str) -> anyhow::Result<()> {\n        self.peer\n            .subscribe(rmcp_model::SubscribeRequestParams::new(uri.to_string()))\n            .await\n            .map_err(|e| anyhow::anyhow!(\"rmcp subscribe '{}' failed: {}\", uri, e))\n    }\n\n    async fn unsubscribe_resource(&self, uri: &str) -> anyhow::Result<()> {\n        self.peer\n            .unsubscribe(rmcp_model::UnsubscribeRequestParams::new(uri.to_string()))\n            .await\n            .map_err(|e| anyhow::anyhow!(\"rmcp unsubscribe '{}' failed: {}\", uri, e))\n    }\n\n    fn subscribe_to_notifications(&self) -> BoxStream<'static, anyhow::Result<Value>> {\n        let notifications_rx = Arc::clone(&self.notifications_rx);\n        let (tx, rx) = mpsc::channel::<anyhow::Result<Value>>(100);\n        tokio::spawn(async move {\n            loop {\n                let next = {\n                    let mut receiver = notifications_rx.lock().await;\n                    receiver.recv().await\n                };","sourceCodeStart":568,"sourceCodeEnd":604,"githubUrl":"https://github.com/Kuberwastaken/claurst/blob/b0637c97ec34144387cbf2f74f65df6d16a6cef1/src-rust/crates/mcp/src/rmcp_backend.rs#L568-L604","documentation":"The rmcp peer's `subscribe` call for a resource URI failed — the MCP server rejected or errored on the resources/subscribe request (unsupported capability, unknown URI, or connection-level failure propagated through the peer).","triggerScenarios":"Thrown at src-rust/crates/mcp/src/rmcp_backend.rs:586 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the server advertises resource subscription support","Check that the URI exists (list resources first)","Inspect the server-side error for the reject reason"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b0637c97ec34144387cbf2f74f65df6d16a6cef1","analyzedAt":"2026-09-10T00:24:58.650Z","contentChangedAt":"2026-09-10T00:24:58.650Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}