cbor-redux icon indicating copy to clipboard operation
cbor-redux copied to clipboard

Surrealdb.js and cbor Error: CBORError: Remaining bytes

Open rvdende opened this issue 1 year ago • 1 comments

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?

rvdende avatar Apr 28 '24 10:04 rvdende

https://github.com/surrealdb/surrealdb.js/issues/248

rvdende avatar Apr 28 '24 10:04 rvdende