steep-balloon-41261
12/20/2023, 10:39 PMdry-elephant-14928
12/21/2023, 7:45 AMnice-queen-7129
12/21/2023, 12:15 PMonConnectionStateChanged event:
'onConnectionStateChanged', 'connecting'
'onConnectionStateChanged', 'connecting'
'onConnectionStateChanged', 'connected'
'onConnectionStateChanged', 'disconnected'
'onConnectionStateChanged', 'connected'
Logs:
'conected to ', '<wss://ciaoamigos-0t0ghmre.livekit.cloud>', ' ', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDM5ODgwODUsImlzcyI6IkFQSVk3OEpzbk1OQlJReiIsIm5iZiI6MTcwMzA4ODA4NSwic3ViIjoiUElQUE8iLCJ2aWRlbyI6eyJjYW5QdWJsaXNoIjp0cnVlLCJjYW5QdWJsaXNoRGF0YSI6dHJ1ZSwiY2FuU3Vic2NyaWJlIjp0cnVlLCJyb29tIjoiVEVTVCIsInJvb21Kb2luIjp0cnVlfX0.CTf_ZtfwApgBCU08XcV3lugkZ2qwEkjBA4M0qwuEWWE'
2023-12-21T15:29:20.006Z
48685
newproject
'isPublishingTrack', false
2023-12-21T15:29:21.750Z
48685
newproject
Possible Unhandled Promise Rejection (id: 0):
Error: addIceCandidate failed
promiseMethodWrapper@http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=myjobsvil.bbrmonza.it:2055:45
@http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=myjobsvil.
2023-12-21T15:29:21.752Z
48685
newproject
Possible Unhandled Promise Rejection (id: 1):
Error: addIceCandidate failed
promiseMethodWrapper@http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=myjobsvil.bbrmonza.it:2055:45
@http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=myjobsvil.
2023-12-21T15:29:21.753Z
48685
newproject
Possible Unhandled Promise Rejection (id: 2):
Error: addIceCandidate failed
promiseMethodWrapper@http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=myjobsvil.bbrmonza.it:2055:45
@http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=myjobsvil.
2023-12-21T15:29:21.754Z
48685
newproject
Possible Unhandled Promise Rejection (id: 3):
Error: addIceCandidate failed
promiseMethodWrapper@http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=myjobsvil.bbrmonza.it:2055:45
@http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=myjobsvil.
2023-12-21T15:29:21.756Z
48685
newproject
Possible Unhandled Promise Rejection (id: 4):
Error: PeerConnection cannot create an answer in a state other than have-remote-offer or have-local-pranswer.
promiseMethodWrapper@http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=myjobsvil.bbrmonza.it:2055:45
@http://localhost:8081/index.bundle//&platform=ios&
My code for the connection:
let connect = async () => {
const connectOpts = {
rtcConfig: {
iceTransportPolicy: 'relay',
},
};
try {
await room.connect(liveKitUrl, liveKitToken, connectOpts);
// ...Other processes after connection
console.log('Connected to', liveKitUrl, liveKitToken);
} catch (error) {
console.error('Error during connection:', error);
}
};
await connect();
It's noticed that during the initial connection attempt, after the state appears as "connected," an immediate disconnection occurs with the "Connection refused" error. I've set iceTransportPolicy to "relay" in an attempt to resolve this issue, but it seems the connection continues to be refused.
Any suggestions on how to handle this issue would be greatly appreciated. Thank you!dry-elephant-14928
12/21/2023, 5:12 PMnice-queen-7129
12/21/2023, 9:09 PMnice-queen-7129
12/22/2023, 6:53 PM