You are reading content from Scuttlebutt
@farewellutopia %oIKq/B9kpQ10ERVng+RbSqSii9ZobFX9O/qFWVv2DNY=.sha256
Re: %ld3BapFVb

Thanks @cel-desktop for this very helpful example! It helps me learn about the sbot ass well as the pull-stream API.

The client often fails to connect to the server (Error: could not connect to sbot), on the server I see this log:

server error, from net:127.0.0.1:47778~shs:
Error: stream ended with:0 but wanted:64
    at drain (/usr/local/lib/node_modules/ssb-server/node_modules/pull-reader/index.js:43:26)
    at /usr/local/lib/node_modules/ssb-server/node_modules/pull-reader/index.js:63:18
    at /usr/local/lib/node_modules/ssb-server/node_modules/pull-reader/index.js:20:7
    at drain (/usr/local/lib/node_modules/ssb-server/node_modules/stream-to-pull-stream/index.js:126:18)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ssb-server/node_modules/stream-to-pull-stream/index.js:147:5)
    at Socket.emit (events.js:228:7)
    at TCP.<anonymous> (net.js:664:12)

I understand that I'm connecting unnecessarily often and that I could instead just connect once and keep a reference to the server. I'm still curious about what exactly is causing this error.

Join Scuttlebutt now