js-ceramic icon indicating copy to clipboard operation
js-ceramic copied to clipboard

libp2p stream reset error

Open Schwartz10 opened this issue 5 years ago • 3 comments

Haven't figured out how to replicate this yet, but it seems to happen pretty frequently when running Ceramic-cli v0.13.3. It seems like it might cause the daemon to not respond to requests? Not sure yet, but wanted to put it on your radar because it will break any app that is doing simple ceramic operations.

(node:46818) UnhandledPromiseRejectionWarning: Error: stream reset
    at Object.reset (/Users/jonathanschwartz/Documents/owl/streams/streams-js-tooling/apps/streams-api/node_modules/libp2p-mplex/src/stream.js:72:27)
    at Mplex._handleIncoming (/Users/jonathanschwartz/Documents/owl/streams/streams-js-tooling/apps/streams-api/node_modules/libp2p-mplex/src/mplex.js:227:16)
    at /Users/jonathanschwartz/Documents/owl/streams/streams-js-tooling/apps/streams-api/node_modules/libp2p-mplex/src/mplex.js:156:22
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Mplex.sink (/Users/jonathanschwartz/Documents/owl/streams/streams-js-tooling/apps/streams-api/node_modules/libp2p-mplex/src/mplex.js:149:9)
(Use `node --trace-warnings ...` to show where the warning was created)

Schwartz10 avatar Nov 19 '20 16:11 Schwartz10

@Schwartz10 I would propose the same separation of concerns like I described here. Makes sense?

simonovic86 avatar Nov 19 '20 17:11 simonovic86

This issue seems to be related to this one 111.

simonovic86 avatar Nov 19 '20 17:11 simonovic86

Yeah that issue looks very promising!

The separation of concerns did not work - see https://github.com/ceramicnetwork/js-ceramic/issues/519#issuecomment-730609814

Schwartz10 avatar Nov 19 '20 20:11 Schwartz10