{"record":{"id":"7c34aee691f81cf3","repo":"clockworklabs/SpacetimeDB","slug":"failed-to-decode-row","errorCode":null,"errorMessage":"Failed to decode row!","messagePattern":"Failed to decode row!","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/bindings/src/table.rs","lineNumber":1434,"sourceCode":"            inner: iter,\n            reader: Cursor::new(buf),\n            _marker: PhantomData,\n        }\n    }\n\n    fn is_exhausted(&self) -> bool {\n        (&self.reader).remaining() == 0 && self.inner.is_exhausted()\n    }\n}\n\nimpl<T: DeserializeOwned> Iterator for TableIter<T> {\n    type Item = T;\n\n    fn next(&mut self) -> Option<Self::Item> {\n        loop {\n            // If we currently have some bytes in the buffer to still decode, do that.\n            if (&self.reader).remaining() > 0 {\n                let row = bsatn::from_reader(&mut &self.reader).expect(\"Failed to decode row!\");\n                return Some(row);\n            }\n\n            // Don't fetch the next chunk if there is none.\n            if self.inner.is_exhausted() {\n                return None;\n            }\n\n            // Otherwise, try to fetch the next chunk while reusing the buffer.\n            self.reader.buf.clear();\n            self.reader.pos.set(0);\n            self.inner.read(&mut self.reader.buf);\n        }\n    }\n}\n","sourceCodeStart":1416,"sourceCodeEnd":1450,"githubUrl":"https://github.com/clockworklabs/SpacetimeDB/blob/524b4487d949b61a07d4f39c862d1290259dfd20/crates/bindings/src/table.rs#L1416-L1450","documentation":"Error \"Failed to decode row!\" thrown in clockworklabs/SpacetimeDB.","triggerScenarios":"Thrown at crates/bindings/src/table.rs:1434 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"524b4487d949b61a07d4f39c862d1290259dfd20","analyzedAt":"2026-08-16T23:58:54.611Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}