zed-industries/zed · error · anyhow::Error
no such contact request
Error message
no such contact request
What it means
dismiss_contact_notification runs a targeted UPDATE on the contact row matching the pair and direction; when zero rows are affected (no matching accepted contact or request), this sentinel reports that the referenced contact request does not exist.
Solutions
- Verify the contact request ID/direction matches an existing request
- Refresh contact state; the request may have been withdrawn or already dismissed
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/collab/src/db/queries/contacts.rs:276 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/3ea5370521b16c5d.
Report an issue: GitHub.
Appendix: source
Thrown at crates/collab/src/db/queries/contacts.rs:276
..Default::default()
})
.filter(
contact::Column::UserIdA
.eq(id_a)
.and(contact::Column::UserIdB.eq(id_b))
.and(
contact::Column::AToB
.eq(a_to_b)
.and(contact::Column::Accepted.eq(true))
.or(contact::Column::AToB
.ne(a_to_b)
.and(contact::Column::Accepted.eq(false))),
),
)
.exec(&*tx)
.await?;
if result.rows_affected == 0 {
Err(anyhow!("no such contact request"))?
} else {
Ok(())
}
})
.await
}
/// Accept or decline a contact request
pub async fn respond_to_contact_request(
&self,
responder_id: UserId,
requester_id: UserId,
accept: bool,
) -> Result<NotificationBatch> {
self.transaction(|tx| async move {
let (id_a, id_b, a_to_b) = if responder_id < requester_id {
(responder_id, requester_id, false)
} else {View on GitHub (pinned to f4178619ac)