{"record":{"id":"62745a4943741f4a","repo":"zed-industries/zed","slug":"unexpected-rpc-response-status","errorCode":null,"errorMessage":"unexpected /rpc response status {}","messagePattern":"unexpected /rpc response status (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/client/src/client.rs","lineNumber":1310,"sourceCode":"            #[cfg(any(test, feature = \"test-support\"))]\n            if let Some(url) = url_override {\n                return Ok(url);\n            }\n\n            if let Some(url) = &*ZED_RPC_URL {\n                return Url::parse(url).context(\"invalid rpc url\");\n            }\n\n            let mut url = http.build_url(\"/rpc\");\n            if let Some(preview_param) =\n                release_channel.and_then(|channel| channel.release_query_param())\n            {\n                url += \"?\";\n                url += preview_param;\n            }\n\n            let response = http.get(&url, Default::default(), false).await?;\n            anyhow::ensure!(\n                response.status().is_redirection(),\n                \"unexpected /rpc response status {}\",\n                response.status()\n            );\n            let collab_url = response\n                .headers()\n                .get(\"Location\")\n                .context(\"missing location header in /rpc response\")?\n                .to_str()\n                .map_err(EstablishConnectionError::other)?\n                .to_string();\n            Url::parse(&collab_url).with_context(|| format!(\"parsing collab rpc url {collab_url}\"))\n        }\n    }\n\n    fn establish_websocket_connection(\n        self: &Arc<Self>,\n        credentials: &Credentials,","sourceCodeStart":1292,"sourceCodeEnd":1328,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/client/src/client.rs#L1292-L1328","documentation":"When discovering the RPC endpoint, the client GETs the /rpc URL (with any release-channel query param) and received a non-success HTTP status; the status code is embedded, meaning the /rpc probe was rejected by the server (misconfigured gateway, outage, or redirect) before an RPC connection was attempted.","triggerScenarios":"Thrown at crates/client/src/client.rs:1310 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the RPC discovery after checking network connectivity","Verify any custom ZED_RPC_URL override points at a valid /rpc endpoint","Check proxy/SSL interception that may return error statuses for the probe request"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}