clockworklabs/SpacetimeDB · error
Failed to decode row!
Error message
Failed to decode row!
What it means
Error "Failed to decode row!" thrown in clockworklabs/SpacetimeDB.
Source
Thrown at crates/bindings/src/table.rs:1434
inner: iter,
reader: Cursor::new(buf),
_marker: PhantomData,
}
}
fn is_exhausted(&self) -> bool {
(&self.reader).remaining() == 0 && self.inner.is_exhausted()
}
}
impl<T: DeserializeOwned> Iterator for TableIter<T> {
type Item = T;
fn next(&mut self) -> Option<Self::Item> {
loop {
// If we currently have some bytes in the buffer to still decode, do that.
if (&self.reader).remaining() > 0 {
let row = bsatn::from_reader(&mut &self.reader).expect("Failed to decode row!");
return Some(row);
}
// Don't fetch the next chunk if there is none.
if self.inner.is_exhausted() {
return None;
}
// Otherwise, try to fetch the next chunk while reusing the buffer.
self.reader.buf.clear();
self.reader.pos.set(0);
self.inner.read(&mut self.reader.buf);
}
}
}
View on GitHub (pinned to 524b4487d9)
When it happens
Trigger: Thrown at crates/bindings/src/table.rs:1434 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Parsing and encoding errors: unexpected token, malformed input — why parsers reject input and how to find the real culprit.
AI-assisted analysis of clockworklabs/SpacetimeDB@524b4487d9 (2026-08-16).
Data as JSON: /api/errors/7c34aee691f81cf3.
Report an issue: GitHub.