zed-industries/zed · error
room is offline
Error message
room is offline
What it means
Room::call checked the room's connection status before dialing and found it offline (disconnected from the collaboration server); the task fails immediately because signaling for an outgoing call is impossible without a live room connection.
Solutions
- Wait for the room to reconnect to the collaboration server, then retry the call
- Rejoin the room if the connection was dropped permanently
- Check network connectivity / sign-in state that caused the offline status
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at crates/call/src/call_impl/room.rs:1183 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/54b576ffb4db02a5.
Report an issue: GitHub.
Appendix: source
Thrown at crates/call/src/call_impl/room.rs:1183
assert!(self.participant_user_ids.contains(&participant.legacy_id));
assert_ne!(participant.legacy_id, self.client.user_id().unwrap());
}
assert_eq!(
self.participant_user_ids.len(),
self.remote_participants.len() + self.pending_participants.len()
);
}
}
pub(crate) fn call(
&mut self,
called_user_id: u64,
initial_project_id: Option<u64>,
cx: &mut Context<Self>,
) -> Task<Result<()>> {
if self.status.is_offline() {
return Task::ready(Err(anyhow!("room is offline")));
}
cx.notify();
let client = self.client.clone();
let room_id = self.id;
self.pending_call_count += 1;
cx.spawn(async move |this, cx| {
let result = client
.request(proto::Call {
room_id,
called_user_id,
initial_project_id,
})
.await;
this.update(cx, |this, cx| {
this.pending_call_count -= 1;
if this.should_leave() {
this.leave(cx).detach_and_log_err(cx);View on GitHub (pinned to f4178619ac)