cbor-redux
cbor-redux copied to clipboard
Surrealdb.js and cbor Error: CBORError: Remaining bytes
Not sure if this is a bug on the surrealdb.js implementation, or in cbor-redux, but this is the error. It seems to happen after a while, not sure if its to do with authentication getting stale, or some other memory issue after a while.
⨯ unhandledRejection: Error: CBORError: Remaining bytes
at decode (file:///node_modules/.pnpm/[email protected]/node_modules/cbor-redux/esm/src/decode.js:271:19)
at decodeCbor (file:///node_modules/.pnpm/[email protected]/node_modules/surrealdb.js/esm/library/cbor/index.js:76:12)
at HttpEngine.rpc (file:///node_modules/.pnpm/[email protected]/node_modules/surrealdb.js/esm/library/engine.js:262:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Surreal.ping (file:///node_modules/.pnpm/[email protected]/node_modules/surrealdb.js/esm/surreal.js:130:27)
Any idea what might be causing this?
https://github.com/surrealdb/surrealdb.js/issues/248