chr15m / bugout

Back end web app services over WebRTC.
https://chr15m.github.io/bugout
MIT License
607 stars 59 forks source link

Console errors #3

Closed Faleidel closed 5 years ago

Faleidel commented 5 years ago

I sometimes get this error:

ICE failed, add a TURN server and see about:webrtc for more details

And this one:

Error: Unrecognized extension: bo_channel

What are they? And could it be related to bugout servers sometimes becoming non reponsive?

Here is an other one:

La connexion avec wss://tracker.btorrent.xyz/ a été interrompue pendant le chargement de la page.
La connexion avec wss://hub.bugout.network/ a été interrompue pendant le chargement de la page.

Sorry for the french, the translation is: "The connection with wss:... was interrupted while loading the page."

chr15m commented 5 years ago

Hi @Faleidel thanks for reporting your issues.

ICE failed, add a TURN server and see about:webrtc for more details

Did you see this error despite successful connection? Is it Firefox?

This is basically the WebRTC layer saying that it can't figure out how your machine can be reached from outside. This could be if you are offline or if you are inside a strongly firewalled network. If it's the latter then you can specify a TURN server to use as per the documentation at the bottom of the documentation.

Error: Unrecognized extension: bo_channel

This one can occur if a peer tries to send before a cryptographic connection has properly been established. For example if you tried to do a send() inside a wire event.

La connexion avec wss://tracker.btorrent.xyz/ a été interrompue pendant le chargement de la page. La connexion avec wss://hub.bugout.network/ a été interrompue pendant le chargement de la page.

Bugout uses WebTorrent which requires a central WSS torrent tracker for peers to find eachother. In WebRTC parlance this is called a "signalling server". What is happening above is your computer can't reach the signalling server for some reason. When you see these messages see if you can ping those hostnames e.g. ping hub.bugout.network. If you can't ping them then you probably have some unrelated network connectivity issue.

Faleidel commented 5 years ago

Ok thanks. I'm going to try and narrow down how I get the issue.

chr15m commented 5 years ago

@Faleidel I found that this one:

Error: Unrecognized extension: bo_channel

Can occur sometimes if a send happens after a wire has connected but before the handshake has been established. I've pushed a fix for this. Let me know if you see it again after cd3cd89.

chr15m commented 5 years ago

@Faleidel please feel free to re-open this if you see the issue again.