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

Errors using DHT as peer disconnects

Open HexaField opened this issue 5 years ago • 1 comments

Here are a couple errors I have seen while trying to put to the DHT immediately after a peer disconnects. Package versions are shown in errors.

index.min.js:2 Uncaught (in promise) Error: stream ended before 1 bytes became available
    at index.min.js:2
    at :8080/async https:/unpkg.com/[email protected]/dist/index.min.js:2
    at async c (index.min.js:2)
    at async Object.t.read (index.min.js:2)
    at async e.exports (index.min.js:2)
    at async i.p [as _newStream] (index.min.js:2)
    at async i.newStream (index.min.js:2)
    at async e.exports.sendRequest (create-browser-e2b3baae.js:6)
    at :8080/async http:/localhost:8080/web_modules/common/create-browser-e2b3baae.js:6
    at :8080/async http:/localhost:8080/web_modules/common/create-browser-e2b3baae.js:6
Uncaught (in promise) AggregateError: 
    Error: peer is not available
        at l.<anonymous> (https://unpkg.com/[email protected]/dist/index.min.js:2:363195)
        at l.n.emit (https://unpkg.com/[email protected]/dist/index.min.js:2:217949)
        at l.onevent (https://unpkg.com/[email protected]/dist/index.min.js:2:329269)
        at l.onpacket (https://unpkg.com/[email protected]/dist/index.min.js:2:328953)
        at l.<anonymous> (https://unpkg.com/[email protected]/dist/index.min.js:2:330969)
        at l.n.emit (https://unpkg.com/[email protected]/dist/index.min.js:2:217949)
        at l.ondecoded (https://unpkg.com/[email protected]/dist/index.min.js:2:320475)
        at h.<anonymous> (https://unpkg.com/[email protected]/dist/index.min.js:2:330969)
        at h.n.emit (https://unpkg.com/[email protected]/dist/index.min.js:2:217949)
        at h.add (https://unpkg.com/[email protected]/dist/index.min.js:2:216180)
    Error: peer is not available
        at l.<anonymous> (https://unpkg.com/[email protected]/dist/index.min.js:2:363195)
        at l.n.emit (https://unpkg.com/[email protected]/dist/index.min.js:2:217949)
        at l.onevent (https://unpkg.com/[email protected]/dist/index.min.js:2:329269)
        at l.onpacket (https://unpkg.com/[email protected]/dist/index.min.js:2:328953)
        at l.<anonymous> (https://unpkg.com/[email protected]/dist/index.min.js:2:330969)
        at l.n.emit (https://unpkg.com/[email protected]/dist/index.min.js:2:217949)
        at l.ondecoded (https://unpkg.com/[email protected]/dist/index.min.js:2:320475)
        at h.<anonymous> (https://unpkg.com/[email protected]/dist/index.min.js:2:330969)
        at h.n.emit (https://unpkg.com/[email protected]/dist/index.min.js:2:217949)
        at h.add (https://unpkg.com/[email protected]/dist/index.min.js:2:216180)
    at https://unpkg.com/[email protected]/dist/index.min.js:2:516628

HexaField avatar Dec 12 '20 05:12 HexaField

@HexaField can you create a test that replicates this issue? It would be great to help with debugging to start with that

vasco-santos avatar Dec 14 '20 09:12 vasco-santos

Closing due to staleness

maschad avatar Sep 28 '23 19:09 maschad