client-sdk-flutter icon indicating copy to clipboard operation
client-sdk-flutter copied to clipboard

[bug]Timed out waiting for PeerConnection to connect, please check your network for ice connectivity

Open simanlx opened this issue 1 year ago • 5 comments

E/flutter (28797): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: LiveKit Exception: [MediaConnectException] Timed out waiting for PeerConnection to connect, please check your network for ice connectivity E/flutter (28797): #0 Engine.connect. (package:livekit_client/src/core/engine.dart:203:26) E/flutter (28797): #1 _RootZone.run (dart:async/zone.dart:1655:54) E/flutter (28797): #2 Future.timeout. (dart:async/future_impl.dart:938:34) E/flutter (28797): #3 Timer._createTimer. (dart:async-patch/timer_patch.dart:18:15) E/flutter (28797): #4 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19) E/flutter (28797): #5 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5) E/flutter (28797): #6 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)

升级 2.0.2

simanlx avatar Mar 06 '24 03:03 simanlx

Same here. Do you have any information about the solution?

vuminhhieucareer172 avatar Mar 21 '24 09:03 vuminhhieucareer172

getting the same issue

mkgor avatar Apr 01 '24 20:04 mkgor

Starting to see this too:

Uncaught Error: Failed to construct 'RTCPeerConnection': '[turn:ip-129-146-71-91.host.livekit.cloud:3478?transport=udp, turn:129.146.71.91:3478?transport=udp, turns:ophoenix1a.turn.livekit.cloud:443?transport=tcp]' is not a valid URL.

main.dart.js:5215 Uncaught LiveKit Exception: [minified:Mc] Timed out waiting for PeerConnection to connect, please check your network for ice connectivity.

kNoAPP avatar Apr 13 '24 01:04 kNoAPP

I have this problem too. I'm also getting this warning on your test site. It may be related to knowledge.

image

furkanKotic avatar May 09 '24 13:05 furkanKotic

This probably happens after the first call. You need to call room.disconnect() after a call closes or is cancelled. Note: On some platforms (JavaScript and Swift), Room.disconnect is called automatically when the application exits.

papa-tezda avatar Jul 02 '24 11:07 papa-tezda