Closed pcfreak30 closed 1 year ago
@pcfreak30:
"Type": "dhtclient"
You disabled the DHT server, thus Kubo does advertise any dht related multistream addresses because the server is not running and nothing would respond if you connected to thoses streams. :slightly_smiling_face:
Please reopen if this still does not work after switching to something like dhtserver
(note that the auto
and dht
modes can still have this behaviour from time to time, then the dht server is turned on only when your node is reachable from internet).
Checklist
Installation method
built from source
Version
Config
Description
During development, while trying to get JS-IPFS and Helia to interact with Kubo, I setup using the KAD DHT.
With the
@libp2p/kad-dht
DHT content routing logicfindProviders
to the Network class and ultimately the RPC code forGET_PROVIDERS
is sent out, it tries to do a multistream negotiation for/ipfs/kad/1.0.0
and/ipfs/lan/kad/1.0.0
.As this is not registered with kubo, it fails and gets a
na
. It seems this is registered on another subsystem service that's get triggered in some cases, which sets thedht.host.SetStreamHandler
but that's very different logic to the multistream?Due to this, I am having to move forward with the JS implementations since this is a blocking problem in the code for me.
Thanks.