libp2p / jvm-libp2p

a libp2p implementation for the JVM, written in Kotlin 🔥
https://libp2p.io
Apache License 2.0
257 stars 74 forks source link

Connect API between go-libp2p & jvm-libp2p returns error #234

Open ShwetaTripathi05 opened 2 years ago

ShwetaTripathi05 commented 2 years ago

I am trying to establish connection between a go-libp2p host and another jvm-libp2p host. When I use the host.connect() API from the go-libp2p node by passing the multiaddress and peerID of the jvm-libp2p node, it returns an error : “failed to negotiate security protocol: protocol not supported”.

Any help on resolution of the above error would be appreciated!

Nashatyrev commented 2 years ago

What security protocols are set up for hosts on both Go and Jvm sides?

vikinatora commented 1 year ago

Experiencing the same issue as @ShwetaTripathi05.

vikinatora commented 1 year ago

@ShwetaTripathi05 I managed to resolved the issue by validating that both jvm and go peer announce identical protocols. If there's no match between the protocol identifiers, then it throws this error.