-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: KuboClient not returning multiaddrs in FIND_PEER
event
#1985
Comments
@maschad mind investigating this? |
I'm not sure this is a problem anymore. I remember having this same thing a few weeks (maybe a little over a month ago and thought it was something about the kadDHT's client mode not working properly. I now can successfully call
libp2p version 0.46.6 |
Thanks for that feedback @AustinFoss but the description may have been a bit misleading, this issue actually is within the context of using delegated-peer-routing which relies on the JS RPC Kubo client to find peer's on a node's behalf. I've updated the description to reflect this. For more details you can see ipfs/js-kubo-rpc-client#176 |
FIND_PEER
event
related to ipfs/kubo#10117 |
Are we reliant on the new Kubo RC to resolve this issue? |
AFAICT the issue here isn't that some functionality is bugged in kubo that's preventing js-libp2p from dialing peers just that kubo was returning effectively "yes I found the peer ... oh but no addresses" rather than "no I didn't find the peer". You can be defensive in js-kubo-rpc-client or js-libp2p-delegated-peer-routing to turn a no address response into an error. I suspect the user that filed this bug wants kubo to return their peer's address and let them dial it in js-libp2p though, and if that's not happening then something else is going wrong (e.g. the target node isn't a DHT client, etc.). |
So that's currently the case in delegated peer routing which js-libp2p was propagating here as the
Yup you are spot on, it was the DHT client being disabled, thanks @aschmahmann |
@maschad I saw you closed this issue - I know you had a local setup to reproduce the original issue - were you able to apply @AustinFoss 's suggestion and get it working? |
That's correct, once clientMode was enabled I was able to retrieve the |
Cool Thanks for the explanation as well @aschmahmann 🙏 |
swarm connecting the peer does work
Originally posted by @TheGreatAlgo in #1951 (comment)
UPDATE
the JS RPC Kubo client is currently is returning a successful
FIND_PEER
event despite not having any diall-able addresses, which leads the delegated-peer-routing findPeer method to throw aERR_NOT_FOUND
Blocked by ipfs/js-kubo-rpc-client#176
The text was updated successfully, but these errors were encountered: