{"record":{"id":"84c1a89a4071e635","repo":"zed-industries/zed","slug":"context-server-request-timeout","errorCode":null,"errorMessage":"Context server request timeout","messagePattern":"Context server request timeout","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/context_server/src/client.rs","lineNumber":483,"sourceCode":"                            return Err(err);\n                        }\n                        anyhow::bail!(\"cancelled\")\n                    }\n                }\n            }\n            _ = cancel_fut => {\n                self.notify(\n                    Cancelled::METHOD,\n                    ClientNotification::Cancelled(CancelledParams {\n                        request_id: RequestId::Int(id),\n                        reason: None\n                    })\n                ).log_err();\n                anyhow::bail!(RequestCanceled)\n            }\n            _ = timeout_fut => {\n                log::error!(\"cancelled csp request task for {method:?} id {id} which took over {:?}\", timeout.unwrap());\n                anyhow::bail!(\"Context server request timeout\");\n            }\n        }\n    }\n\n    /// Sends a notification to the context server without expecting a response.\n    /// This function serializes the notification and sends it through the outbound channel.\n    pub fn notify(&self, method: &str, params: impl Serialize) -> Result<()> {\n        let notification = serde_json::to_string(&Notification {\n            jsonrpc: JSON_RPC_VERSION,\n            method,\n            params,\n        })\n        .unwrap();\n        self.outbound_tx.try_send(notification)?;\n        Ok(())\n    }\n\n    /// Notify the underlying transport of the negotiated MCP protocol version","sourceCodeStart":465,"sourceCodeEnd":501,"githubUrl":"https://github.com/zed-industries/zed/blob/bc538def4545534201bbfcac4e95ac34ea6501b6/crates/context_server/src/client.rs#L465-L501","documentation":"Error \"Context server request timeout\" thrown in zed-industries/zed.","triggerScenarios":"Thrown at crates/context_server/src/client.rs:483 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bc538def4545534201bbfcac4e95ac34ea6501b6","analyzedAt":"2026-08-16T07:30:46.435Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}