Skip to content

handling "too few nodes responded" #103

@heapwolf

Description

@heapwolf

When going offline i get the error Too few nodes responded from hyperswram (https://github.com/mafintosh/dht-rpc/blob/7527e8f83e7457750a0ece5469ed3b579c5799de/lib/query.js#L196). It seems like this could be caught by adding an error event up the stack, but im not sure what the intended idea was for handling this correctly. cc @mafintosh

Error: Too few nodes responded
    at Query._endAfterCommit (/Users/.../hyper-bundle:2552:24)
    at Query._flush (/Users/.../hyper-bundle.js:2548:14)
    at Query._readMore (/Users/.../hyper-bundle:2534:16)
    at Query._onerror (/Users/.../hyper-bundle:2623:14)
    at Object.destroy (/Users/.../hyper-bundle:1366:14)
    at Timeout.oncycle [as _onTimeout] (/Users/.../hyper-bundle:1462:13)
    at listOnTimeout (node:internal/timers:559:11)
    at processTimers (node:internal/timers:500:7)

There are two other issues this reference this without resolution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions