trystero icon indicating copy to clipboard operation
trystero copied to clipboard

supabase works local but not between different internet connections

Open TrusteroP2P opened this issue 1 year ago • 2 comments

Uncaught Error: Connection failed. at Ki._onConnectionStateChange (trystero-supabase.min.js:1) at RTCPeerConnection._pc.onconnectionstatechange (trystero-supabase.min.js:1)

This is the error it gets. Worked fine with two tabs connecting with appId and api key in config. But the second I try to connect with a different device such as a phone, it fails and both instances give this error.

I was able to connect the two devices using one of the "less reliable" methods although as its said they cut out for a while sometimes.

TrusteroP2P avatar Sep 24 '24 12:09 TrusteroP2P

actually I'm seeing this with other libraries as well just got it with nostr too, this just happens no matter what connection I try remotely. Its not even a reconnect like your prior filed issues, it just fails out the gate.

TrusteroP2P avatar Sep 27 '24 09:09 TrusteroP2P

Under further analysis, supplying config file didn't actually get used, instead had to edit the min javascript libraries and add it through a global variable. Seems it needed TURN but I still see that error anyways. Seems like most issues are related to webRTC and the almost deliberately difficultly ISPs put everyone through. Note: happened on an older version of open source chromium for windows 7 to replicate it.

TrusteroP2P avatar Sep 29 '24 11:09 TrusteroP2P

Try the latest version (0.21.0) which uses a new RTC abstraction layer. Also consider trying the new turnConfig option in the joinRoom() config object.

dmotz avatar Mar 27 '25 00:03 dmotz