Replies: 1 comment 9 replies
-
Hey! Usually if the peers that are subscribed arent connected to each other in some manner (ie A <> B, B <> C, C <> D, etc) while subscribed to the topic you may get that error. Additionally, you would want to make sure youre polling swarm so progress can be made on the behaviour state. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I'm using Gossipsub with libp2p to send messages across peer nodes. The nodes are discovered via mDNS and added to Gossipsub via
add_explicit_peer
.I've set up each node to keep track of a list of topics it subscribes to. Here are snippets of the subscription and message sending code below:
Each time when I try to publish a message, I get an
InsufficientPeers
error. I'm logging thesubscribed
topics at each node and can confirm that each node is listing all of the expected topics (i.e. each topic has at least two subscribers.)I've tried fiddling with the mesh size parameters, since I'm only testing with a few nodes at the moment, but this didn't seem to have any effect whether I included the
.mesh_...
configuration lines or not.I've also tried re-adding tracing, as per this discussion, but the issue has already been fixed and it doesn't appear to be helping.
What other factors could be leading to an
InsufficientPeers
error? I've compared the sets of subscribed topics across the nodes and they're all exactly the same, so each topic must have at least a couple subscribers. Not sure if this is possibly related to this discussion.Thanks in advance for any help!
Beta Was this translation helpful? Give feedback.
All reactions