mafintosh / hyperlog

Merkle DAG that replicates based on scuttlebutt logs and causal linking
MIT License
470 stars 33 forks source link

Uncaught Error: write after end #40

Open SafnaAzeez opened 6 years ago

SafnaAzeez commented 6 years ago

I have tried to replicate my log using peer.pipe(log.replicate({ live: true })).pipe(peer); But get the following error


    at writeAfterEnd (index.js:2568)
    at Encoder.Writable.write (index.js:2612)
    at Protocol._encode (index.js:6257)
    at Protocol.node (index.js:6231)
    at index.js:6362
    at index.js:5650
    at index.js:8591
    at index.js:4520
    at index.js:7772
    at IDBTransaction.transaction.oncomplete (index.js:7745)```

I was following the video on
https://www.elastic.co/videos/building-distributed-offline-website-by-mathias-buus
hackergrrl commented 6 years ago

@SafnaAzeez could you share some small runnable code that we could use to reproduce this?