This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
Add error responses to RPC handlers #64
Labels
exp/wizard
Extensive knowledge (implications, ramifications) required
kind/enhancement
A net-new feature or improvement to an existing feature
P1
High: Likely tackled by core team if no one steps up
Currently the js and go DHT implementation don't respond with errors from the rpc handlers, they just end the stream. This makes it difficult for someone to figure out what's going on with their implementation. For example, working on the libp2p-daemon, I was sending an invalid record key on put. The error caused the stream to terminate from the receiving dht node and no meaningful error is returned to the requesting node.
Adding Error responses to the protobuffs would allow us to better inform nodes of issues.
The text was updated successfully, but these errors were encountered: