{"record":{"id":"ff7968738c81c91a","repo":"zed-industries/zed","slug":"elapsed-without-receiving-channels","errorCode":null,"errorMessage":"{:?} elapsed without receiving channels","messagePattern":"(.+?) elapsed without receiving channels","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/channel/src/channel_store.rs","lineNumber":299,"sourceCode":"        cx.spawn(async move |this, cx| {\n            loop {\n                futures::select_biased! {\n                    channels_loaded = channels_loaded_rx.next().fuse() => {\n                        if let Some(true) = channels_loaded {\n                            return Ok(());\n                        }\n                    }\n                    status = status_receiver.next().fuse() => {\n                        if let Some(status) = status\n                            && status.is_connected() {\n                                this.update(cx, |this, _cx| {\n                                    this.initialize();\n                                }).ok();\n                            }\n                        continue;\n                    }\n                    _ = timer => {\n                        return Err(anyhow!(\"{:?} elapsed without receiving channels\", timeout));\n                    }\n                }\n            }\n        })\n    }\n\n    pub fn client(&self) -> Arc<Client> {\n        self.client.clone()\n    }\n\n    /// Returns the number of unique channels in the store\n    pub fn channel_count(&self) -> usize {\n        self.channel_index.by_id().len()\n    }\n\n    /// Returns the index of a channel ID in the list of unique channels\n    pub fn index_of_channel(&self, channel_id: ChannelId) -> Option<usize> {\n        self.channel_index","sourceCodeStart":281,"sourceCodeEnd":317,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/channel/src/channel_store.rs#L281-L317","documentation":"wait_for_channels: the loop exited after neither channels_loaded nor a connected status arrived within the timeout (10s), so the channel store gives up waiting with the elapsed duration in the message.","triggerScenarios":"Thrown at crates/channel/src/channel_store.rs:299 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry opening the channel resource once the channel list loads from the server","Check the network/connection status — the wait aborted because channels never arrived in time","Increase the wait window or subscribe to channel-load events before retrying in slow networks"],"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"}