You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: WebRTC discovered peers not connecting or ping-able
Steps to reproduce the error: Using NodeJs --version 12.16.1, in a freshly cloned js-libp2p directory, got to libp2p-in-the-browser example and follow directions in the Read Me, then open two tabs. If you want to make it easier to see the problem comment out lines 7, 16, & 20-30, removing the bootstrapped peers.
You will now be able to see the other browser's PeerID appear under each tab's respective PeerID but not the following connected output to each window as with the previously bootstrapped peers.
By calling the following function after line 54(within libp2p.on('peer:discovery'...) ): async function ping(peerInfo) { console.log(await libp2p.ping(peerInfo)) }
and passing the peerInfo object emitted by the discovery event you get an error in the browser console after waiting for a while.
Uncaught (in promise) AggregateError: Error: The operation was aborted at AbortSignal.onAbort (http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:118278:14) at AbortSignal.onAbort (http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:50502:16) at AbortSignal.onAbort (http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:50502:16) at AbortController.abort (http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:50467:18) at http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:50459:38 at timerWrapper (http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:47986:16) at maybeSettle (http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:46817:14) at http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:46855:27
The text was updated successfully, but these errors were encountered:
Type: Question
Severity: Low
Description: WebRTC discovered peers not connecting or ping-able
Steps to reproduce the error: Using NodeJs --version 12.16.1, in a freshly cloned js-libp2p directory, got to
libp2p-in-the-browser
example and follow directions in the Read Me, then open two tabs. If you want to make it easier to see the problem comment out lines 7, 16, & 20-30, removing the bootstrapped peers.You will now be able to see the other browser's PeerID appear under each tab's respective PeerID but not the following connected output to each window as with the previously bootstrapped peers.
By calling the following function after line 54(within libp2p.on('peer:discovery'...) ):
async function ping(peerInfo) { console.log(await libp2p.ping(peerInfo)) }
and passing the
peerInfo
object emitted by the discovery event you get an error in the browser console after waiting for a while.Uncaught (in promise) AggregateError: Error: The operation was aborted at AbortSignal.onAbort (http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:118278:14) at AbortSignal.onAbort (http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:50502:16) at AbortSignal.onAbort (http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:50502:16) at AbortController.abort (http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:50467:18) at http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:50459:38 at timerWrapper (http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:47986:16) at maybeSettle (http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:46817:14) at http://localhost:1234/libp2p-in-the-browser.e31bb0bc.js:46855:27
The text was updated successfully, but these errors were encountered: