{"record":{"id":"717b9e9632c07d37","repo":"zed-industries/zed","slug":"invalid-rpc-url","errorCode":null,"errorMessage":"invalid rpc url: {}","messagePattern":"invalid rpc url: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/client/src/client.rs","lineNumber":1354,"sourceCode":"        let user_agent = http.user_agent().cloned();\n        let credentials = credentials.clone();\n        let rpc_url = self.rpc_url(http, release_channel);\n        let system_id = self.telemetry.system_id();\n        let metrics_id = self.telemetry.metrics_id();\n        cx.spawn(async move |cx| {\n            use HttpOrHttps::*;\n\n            #[derive(Debug)]\n            enum HttpOrHttps {\n                Http,\n                Https,\n            }\n\n            let mut rpc_url = rpc_url.await?;\n            let url_scheme = match rpc_url.scheme() {\n                \"https\" => Https,\n                \"http\" => Http,\n                _ => Err(anyhow!(\"invalid rpc url: {}\", rpc_url))?,\n            };\n\n            let stream = gpui_tokio::Tokio::spawn_result(cx, {\n                let rpc_url = rpc_url.clone();\n                async move {\n                    let rpc_host = rpc_url\n                        .host_str()\n                        .zip(rpc_url.port_or_known_default())\n                        .context(\"missing host in rpc url\")?;\n                    Ok(match proxy {\n                        Some(proxy) if !excluded_from_proxy(rpc_host.0) => {\n                            connect_proxy_stream(&proxy, rpc_host).await?\n                        }\n                        _ => Box::new(TcpStream::connect(rpc_host).await?),\n                    })\n                }\n            })\n            .await?;","sourceCodeStart":1336,"sourceCodeEnd":1372,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/client/src/client.rs#L1336-L1372","documentation":"The RPC URL string (from ZED_RPC_URL or the built /rpc path) was parsed with Url::parse but its scheme component was not http/https; the invalid scheme value is embedded in the message, meaning the configured endpoint URL is malformed at the scheme level (e.g. missing scheme or a non-web scheme).","triggerScenarios":"Thrown at crates/client/src/client.rs:1354 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the ZED_RPC_URL value to start with http:// or https://","Remove the override to use the default /rpc URL","Validate the URL at configuration-load time to surface the problem earlier"],"exampleFix":null,"handlingStrategy":"validation","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"}