Closed achingbrain closed 3 years ago
Hi! Want to report my findings here:
I looked closely at the test here: https://github.com/ipfs/js-ipfs/blob/49f78807d7e26483bd926b45cc7e0f797d77e41b/packages/interface-ipfs-core/src/swarm/peers.js#L109-L139
I believe our answer may live somewhere in the todo referenced in these lines: https://github.com/ipfs/js-ipfs/blob/49f78807d7e26483bd926b45cc7e0f797d77e41b/packages/interface-ipfs-core/src/swarm/peers.js#L129-L131
I also see the error in question comes from here https://github.com/libp2p/js-libp2p-webrtc-star/blob/master/src/sig-server/routes-ws/next.js#L118 and I believe our problem is as follows:
Wow that's a mouthful. I have to admit -- this test feels very weird to me in this context. If the WS-Star transport only supports one address, we shouldn't be registering multiple and hoping the test works right? Maybe we ought to do the work to track which registered addresses are on which signalling servers?
The following error occurs intermittently on Chrome and Firefox during IPFS CI:
The test is this one and the error message seems unrelated to the test code.