Gossipsub and transient connections in Libp2p v0.46.6 #2179
-
After updating to latest Helia v2.0.3. which includes Libp2p v0.46.6, I have started to receive transient connection errors from gossipsub:
My understanding is that support for transient connections needs to be explicitly set (I believe the flag is something like Is there any configuration or workaround for gossipsub and transient connections in Libp2p 0.46.6? I found the following two posts which appear to discuss the issue; ChainSafe/js-libp2p-gossipsub#448, #2049. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
I think you may be running into #2036 which was fixed by #2049 It'll be in the #2185 release, likely later today. Before then you can also install |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the update. The transient error has been resolved but unfortunately the peers will now no longer communicate with each other. Please see my simple example at https://github.com/haydenyoung/helia-browser. To deploy:
Clone repo:
Run with a basic web server:
Checking the browser console, you will see the peers successfully connect to the relay and then to one another but there is no communication between the two peers. The only error I can see that could point to a problem is:
Other than that it appears both peers successfully connect (as seen by the 'connect' event listener added to both peers. To recap:
|
Beta Was this translation helpful? Give feedback.
Ok, I think I found the source of the bug - not browser related after all..
Please reinstall your deps an/or otherwise ensure you have
@libp2p/[email protected]
and it should be a lot more reliable.