ceramicnetwork / js-ceramic

Typescript implementation of the Ceramic protocol
http://ceramic.network
Other
413 stars 127 forks source link

libp2p stream reset error #518

Open Schwartz10 opened 3 years ago

Schwartz10 commented 3 years ago

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)
simonovic86 commented 3 years ago

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

simonovic86 commented 3 years ago

This issue seems to be related to this one 111.

Schwartz10 commented 3 years ago

Yeah that issue looks very promising!

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