{"record":{"id":"3cb523d56a1a269a","repo":"zed-industries/zed","slug":"not-a-room-participant","errorCode":null,"errorMessage":"not a room participant","messagePattern":"not a room participant","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/collab/src/db/queries/rooms.rs","lineNumber":1304,"sourceCode":"                .filter(room_participant::Column::RoomId.eq(room_id))\n                .stream(&*tx)\n                .await?;\n\n            let mut is_participant = false;\n            let mut connection_ids = HashSet::default();\n            while let Some(participant) = participants.next().await {\n                let participant = participant?;\n                if let Some(answering_connection) = participant.answering_connection() {\n                    if answering_connection == connection_id {\n                        is_participant = true;\n                    } else {\n                        connection_ids.insert(answering_connection);\n                    }\n                }\n            }\n\n            if !is_participant {\n                Err(anyhow!(\"not a room participant\"))?;\n            }\n\n            Ok(connection_ids)\n        })\n        .await\n    }\n\n    async fn get_channel_room(\n        &self,\n        room_id: RoomId,\n        tx: &DatabaseTransaction,\n    ) -> Result<(Option<channel::Model>, proto::Room)> {\n        let db_room = room::Entity::find_by_id(room_id)\n            .one(tx)\n            .await?\n            .context(\"could not find room\")?;\n\n        let mut db_participants = db_room","sourceCodeStart":1286,"sourceCodeEnd":1322,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/collab/src/db/queries/rooms.rs#L1286-L1322","documentation":"room_connection_ids streams all participants of the room and tracks whether the requesting connection appears among their answering connections; if the loop finishes without a match, the sentinel 'not a room participant' is returned and the connection list is withheld.","triggerScenarios":"Thrown at crates/collab/src/db/queries/rooms.rs:1304 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Join the room before requesting its connections","Verify the connection is still active (not reconnected with a new ID)"],"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"}