-
I have a Rust libp2p connecting to browser node through relay, i try to use request-response, but i get
The Js side listens for data. libp2p.handle("/protocol/1.0.0", ....) How do i reliably send data? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Hi, and thanks for your interest! Did you see #6038? |
Beta Was this translation helpful? Give feedback.
-
That's quite important. The EOF error occurs because the remote peer (in your case the js side) doesn't reply with any response but instead closes the stream. Why that happens depends on the js logic. One easy explanation could be that a different protocol name (i.e. different from |
Beta Was this translation helpful? Give feedback.
I Found a Solution.
Io(Custom { kind: UnexpectedEof, error: Eof { name: "array", expect: Small(1) } }) }
Error in my case means that the Receiver dnt send back a response.If you get this error, make sure they are using the StreamProtocol name and make sure both nodes are recieving Outbound and Inbound Events.
Thank you for your response.
@jxs @elenaf9