{"record":{"id":"9374f2a2d7ff8f70","repo":"zed-industries/zed","slug":"connection-timed-out","errorCode":null,"errorMessage":"connection timed out","messagePattern":"connection timed out","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/client/src/client.rs","lineNumber":1074,"sourceCode":"                if let Some(is_staff_tx) = is_staff_tx.take() {\n                    is_staff_tx.send(state.is_staff).log_err();\n                }\n            })\n            .detach();\n        });\n\n        let credentials = self.sign_in(try_provider, cx).await?;\n\n        self.connect_to_cloud(cx);\n\n        cx.update(move |cx| {\n            cx.spawn({\n                let client = self.clone();\n                async move |cx| {\n                    let is_staff = is_staff_rx.await?;\n                    if is_staff {\n                        match client.connect_with_credentials(credentials, cx).await {\n                            ConnectionResult::Timeout => Err(anyhow!(\"connection timed out\")),\n                            ConnectionResult::ConnectionReset => Err(anyhow!(\"connection reset\")),\n                            ConnectionResult::Result(result) => {\n                                result.context(\"client auth and connect\")\n                            }\n                        }\n                    } else {\n                        Ok(())\n                    }\n                }\n            })\n            .detach_and_log_err(cx);\n        });\n\n        Ok(())\n    }\n\n    pub async fn connect(\n        self: &Arc<Self>,","sourceCodeStart":1056,"sourceCodeEnd":1092,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/client/src/client.rs#L1056-L1092","documentation":"This sentinel error is produced when connecting to the Zed cloud with credentials yields ConnectionResult::Timeout in the staff-connect flow; it signals that the authenticated connection attempt did not complete within its deadline, and the caller wraps it to distinguish a timeout from an outright auth failure.","triggerScenarios":"Thrown at crates/client/src/client.rs:1074 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the connection after checking network availability","Verify firewall/proxy settings allow the zed.cloud websocket endpoint","If timeouts persist, fall back to the non-staff connection path so the user can still sign in"],"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"}