You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error basically says “I don’t want to read this dictionary of length 1”, which is the “kinded” representation of Index (DagCbor doesn’t like definite-length encoding, IIRC). I encountered this while developing event dump/restore functionality in Actyx. The restore part feeds events to BanyanStore::append0 (to preserve timestamps) and does not mess with the internals, so I don’t see how my code could influence the encoding of a Banyan index block.
How much work would it be to replace all DagCbor with cbor-data? I trust that implementation much more, it is very thoroughly tested to actually accept all valid CBOR.
I looked at the store in question (attached) with banyan-cli, added some debug printlns and found that the very first Index that is to be deserialized actually contains payload data. db.zip
This error basically says “I don’t want to read this dictionary of length 1”, which is the “kinded” representation of
Index
(DagCbor doesn’t like definite-length encoding, IIRC). I encountered this while developing event dump/restore functionality in Actyx. The restore part feeds events toBanyanStore::append0
(to preserve timestamps) and does not mess with the internals, so I don’t see how my code could influence the encoding of a Banyan index block.How much work would it be to replace all DagCbor with cbor-data? I trust that implementation much more, it is very thoroughly tested to actually accept all valid CBOR.
/cc @rklaehn
The text was updated successfully, but these errors were encountered: