clockworklabs/SpacetimeDB · error
Attempt to remove non-existent update callback
Error message
Attempt to remove non-existent update callback
What it means
Error "Attempt to remove non-existent update callback" thrown in clockworklabs/SpacetimeDB.
Source
Thrown at sdks/rust/src/callbacks.rs:181
// but we want to assert that we actually removed a callback,
// we just don't want to invoke it.
// So we have to `let _ =`.
let _ = self
.on_delete
.remove(&callback_id)
.expect("Attempt to remove non-existent delete callback");
}
pub(crate) fn remove_on_update(&mut self, callback_id: CallbackId) {
// Ugly: `impl FnMut` is `must_use`.
// If we don't `.expect` this, no diagnostic,
// but we want to assert that we actually removed a callback,
// we just don't want to invoke it.
// So we have to `let _ =`.
let _ = self
.on_update
.remove(&callback_id)
.expect("Attempt to remove non-existent update callback");
}
fn invoke_on_insert(&mut self, ctx: &M::EventContext, row: &dyn Any) {
for callback in self.on_insert.values_mut() {
callback(ctx, row);
}
}
fn invoke_on_delete(&mut self, ctx: &M::EventContext, row: &dyn Any) {
for callback in self.on_delete.values_mut() {
callback(ctx, row);
}
}
fn invoke_on_update(&mut self, ctx: &M::EventContext, old: &dyn Any, new: &dyn Any) {
for callback in self.on_update.values_mut() {
callback(ctx, old, new);
}View on GitHub (pinned to 524b4487d9)
When it happens
Trigger: Thrown at sdks/rust/src/callbacks.rs:181 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of clockworklabs/SpacetimeDB@524b4487d9 (2026-08-16).
Data as JSON: /api/errors/726b483a39cbaa57.
Report an issue: GitHub.