livekit / client-sdk-flutter

Flutter Client SDK for LiveKit
https://docs.livekit.io
Apache License 2.0
229 stars 109 forks source link

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

Open simanlx opened 4 months ago

simanlx commented 4 months ago

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

vuminhhieucareer172 commented 3 months ago

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

mkgor commented 3 months ago

getting the same issue

kNoAPP commented 2 months ago

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.
furkanKotic commented 1 month ago

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

image

papa-tezda commented 2 days ago

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.