new peer id connection failed #4395
Replies: 4 comments 4 replies
-
By default libp2p only dials a peer if you are not already connected. rust-libp2p/swarm/src/dial_opts.rs Lines 311 to 325 in c6984dd The error message above implies, that you are already connected. Does that apply in your case? |
Beta Was this translation helpful? Give feedback.
-
The problem may lie in the fact that youre dialing a peer_id and not the address itself. Unless a behaviour is supplying the address of the peer, you will usually get that error because an address isnt supplied. EDIT: Also noticing the condition, if the peer is connected already, then it might error unless you change the condition too. |
Beta Was this translation helpful? Give feedback.
-
@blackshadowsoftwareltd I documented a possible improvement of the error in #4407. Are you interested in contributing a fix? |
Beta Was this translation helpful? Give feedback.
-
I have another question. how much size of a message I can send to a peer using my Behaviour? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Error :
connection code :
Behaviour:
my swarm config:
Beta Was this translation helpful? Give feedback.
All reactions