Janus-gateway: Videoroomtest on Chrome: `Cannot assign to read only property 'iceServers' of object '#'"`

Created on 19 Apr 2018  路  10Comments  路  Source: meetecho/janus-gateway

I just started seeing this on my site (https://tawk.space) and confirmed it's an issue on the videoroomtest.

Repro (on Chrome 65.0.3325.181 on Windows 10):

  • Open videoroomtest, create a username, see your video published. This should work.
  • Soft refresh (Ctrl-R for me). Again, create a username, but this time you'll see an error like this:
WebRTC error... {"name":"TypeError","message":"Cannot assign to read only property 'iceServers' of object '#'"}
  • This seems to happen consistently on soft refreshes, including after turning off adblockers, trying incognito, etc
  • Hard refresh (Ctrl-Shift-R for me) consistently is fine -- you can publish video.

However, I could not repro this issue on Firefox on Windows 10. Hopefully this is not just a weird issue with my Chrome environment.

Again, I just started seeing this today. I was on a version of Janus from a couple months ago, and I did try updating to the latest with no luck.

Most helpful comment

Or maybe you should all drop Adblock and pass to uBlock as I did :grin:

All 10 comments

Works fine here, can't replicate it.

Weird, I can't reproduce it on Chrome beta on windows 10 or Chrome beta on android. Alright, I'll close this as not reproducible outside my environment.

have the same problem with
Version 65.0.3325.181 (Offizieller Build) (64-Bit)
( fedora 27)

most times i get this on https://janus.conf.meetecho.com/videoroomtest.html

WebRTC error: {code: undefined, name: "TypeError", message: "Cannot assign to read only property 'iceServers' of object '#'"}
error @ videoroomtest.js:419
(anonymous) @ janus.js:2099
Promise.catch (async)
(anonymous) @ janus.js:2099
Promise.then (async)
prepareWebrtc @ janus.js:2059
createOffer @ janus.js:1084
publishOwnFeed @ videoroomtest.js:394
error @ videoroomtest.js:421
(anonymous) @ janus.js:2099
Promise.catch (async)
(anonymous) @ janus.js:2099
Promise.then (async)
prepareWebrtc @ janus.js:2059
createOffer @ janus.js:1084
publishOwnFeed @ videoroomtest.js:394
onmessage @ videoroomtest.js:160
handleEvent @ janus.js:639
(anonymous) @ janus.js:97
Promise.then (async)
(anonymous) @ janus.js:96
Promise.then (async)
httpAPICall @ janus.js:93
eventHandler @ janus.js:422
success @ janus.js:782
(anonymous) @ janus.js:97
Promise.then (async)
(anonymous) @ janus.js:96
Promise.then (async)
httpAPICall @ janus.js:93
createSession @ janus.js:763
Janus @ janus.js:391
(anonymous) @ videoroomtest.js:80
e @ jquery.min.js:3
dispatch @ jquery.min.js:3
i @ jquery.min.js:3

@arpu what Chrome extensions do you have?

I noticed it was fine when I freshly installed Chrome Beta with no extensions, but then when I added a few extensions, I saw this bug again. I specifically installed Adblock, Adblock Plus, Ghostery, and Ublock Origin. The issue persisted even after I turned the extensions off. So maybe there's a weird caching issue?

I also got this issue a few days ago (can't reproduce now).
On Chrome: Version 65.0.3325.181 (Official Build) (64-bit), with some extension: Ads blocker, adb..
I tried Firefox and it's ok. I guess it's problem of new Chrome version

@karth295 yeahh you are right the problem was/is Adblock Plus 3.0.3
if i complete disable adblok h plus all works fine

only disable adblock plus on the website does not help, need to disable the extentation

We're seeing the same issues as others have described, also with Adblock on Chrome 65. I recognize that this isn't a Janus issue since Adblock is tampering with RTCPeerConnection, but not sure if we have any options for circumventing these blocks outside of advising folks to disable Adblock in the meantime. It appears to occur when we create the room for the first time and not if we're joining an existing room, so potentially the extension is picking up something inside the create command.

Or maybe you should all drop Adblock and pass to uBlock as I did :grin:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hsbrg picture hsbrg  路  6Comments

ibc picture ibc  路  5Comments

aduskett picture aduskett  路  12Comments

RobertLowe picture RobertLowe  路  8Comments

kuzm1ch picture kuzm1ch  路  6Comments