haxball / haxball-issues

115 stars 43 forks source link

headless-min.js: Failed to execute 'addIceCandidate' on 'RTCPeerConnection' #1870

Open Nellty opened 1 year ago

Nellty commented 1 year ago
DOMException: Failed to execute 'addIceCandidate' on 'RTCPeerConnection': The RTCPeerConnection's signalingState is 'closed'.
    at https://www.haxball.com/7OirlY7R/__cache_static__/g/headless-min.js:95:345

This is a non-harmful common headless API error, happens every now and then. Is not urgent to fix, just a bit annoying. It's an outdated log line, because there is newer headless-min.js version right now. My theory is that happens when somebody is connecting to the room and just in a moment before the join they press "Cancel" or close the tab

basro commented 1 year ago

With non-harmful you mean you see this logged but the room continues to operate normally?

I'll have a look later.

mertushka commented 1 year ago

A similar issue was seen in haxball.js.

See: https://github.com/mertushka/haxball.js/issues/17

@basro What do you think could cause these, maybe if checks? I'll look into it and also push a update to haxball.js when these RTC bugs (?) fixed.

Nellty commented 1 year ago

With non-harmful you mean you see this logged but the room continues to operate normally?

Yes