OutboundFailure (DialFailure) while trying to start a request-response #5708
-
All the peers in the network are symmetrical, running in
I start a node Then I make This results in In my swarm loop, I am just printing the events that I receive, i.e., I do not call to any function like Questions
LogI replaced the actual public keys with
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The way I usually handle it is by having a behaviour to act as an address book to store peers and their [known] addresses and when dialing it would pull from that behaviour using |
Beta Was this translation helpful? Give feedback.
The way I usually handle it is by having a behaviour to act as an address book to store peers and their [known] addresses and when dialing it would pull from that behaviour using
NetworkBehaviour::handle_pending_outbound_connection
if it exist. Additionally, you could connect to the peer prior to sending the request as well by callingSwarm::dial
or useToSwarm::Dial
within your behaviour.