-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Environment:
- Peer A: Browser: Svelte 5 App Orbitdb/core@2.5.0, helia@5.3.0, libp2p@2.8.2
- Peer B: Voyager@0.0.3, orbitdb/core@2.5.0, helia@5.3.0, libp2p@2.8.2
- Transports: wss, auto-tls, WebRTC, pubsub peer discovery
This morning, I found Voyager in a situation where an error was thrown and obviously NodeJS then ended the execution as usual.
Watching the stack trace, the issue arised during an:
OrbitDB sync operation (sync.js:201) where a stream (it-byte-stream) suddenly ends.
The interesting situation is now, when ever I restart Voyager, it appears to happen again after a few seconds. Voyager loads all pinned OrbitDBs. Closing all browsers which might have interacted with Voyager pauses the behavior. Probably there is again an inconsistency in a db.
voyager:host:error 200 user is not authorized to add +0ms
file:///root/voyager/node_modules/.pnpm/it-byte-stream@1.1.1/node_modules/it-byte-stream/dist/src/index.js:94
throw new UnexpectedEOFError('unexpected end of input');
^
UnexpectedEOFError: unexpected end of input
at Object.read (file:///root/voyager/node_modules/.pnpm/it-byte-stream@1.1.1/node_modules/it-byte-stream/dist/src/index.js:94:31)
at async Object.read (file:///root/voyager/node_modules/.pnpm/it-length-prefixed-stream@1.2.1/node_modules/it-length-prefixed-stream/dist/src/index.js:45:37)
at async read (file:///root/voyager/node_modules/.pnpm/@libp2p+multistream-select@6.0.20/node_modules/@libp2p/multistream-select/dist/src/multistream.js:22:17)
at async Module.readString (file:///root/voyager/node_modules/.pnpm/@libp2p+multistream-select@6.0.20/node_modules/@libp2p/multistream-select/dist/src/multistream.js:33:17)
at async Module.select (file:///root/voyager/node_modules/.pnpm/@libp2p+multistream-select@6.0.20/node_modules/@libp2p/multistream-select/dist/src/select.js:72:20)
at async ConnectionImpl.newStream [as _newStream] (file:///root/voyager/node_modules/.pnpm/libp2p@2.8.2/node_modules/libp2p/dist/src/upgrader.js:331:50)
at async ConnectionImpl.newStream (file:///root/voyager/node_modules/.pnpm/libp2p@2.8.2/node_modules/libp2p/dist/src/connection/index.js:94:24)
at async task (file:///root/voyager/node_modules/.pnpm/@orbitdb+core@2.5.0/node_modules/@orbitdb/core/src/sync.js:194:26)
at async file:///root/voyager/node_modules/.pnpm/p-queue@8.1.0/node_modules/p-queue/dist/index.js:230:36
Emitted 'error' event at:
at task (file:///root/voyager/node_modules/.pnpm/@orbitdb+core@2.5.0/node_modules/@orbitdb/core/src/sync.js:201:20)
at async file:///root/voyager/node_modules/.pnpm/p-queue@8.1.0/node_modules/p-queue/dist/index.js:230:36 {
code: 'ERR_UNEXPECTED_EOF'
}
Node.js v20.18.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels