Page MenuHomePhabricator

Etherpad connection errors in Firefox due to PrivacyBadger add-on - captureStackTrace, XML Parsing Error, connection to the server at wss://
Closed, ResolvedPublic

Description

Trying to open any etherpad in Firefox (55.0.2, Linux), but not Chromium (works fine) is currently broken.
e.g. https://etherpad.wikimedia.org/p/teststring -- gives an error like this, that appears for less than a second:

An error occured
The error was reported with the following id: 'sMqX5IP0qBYYGaZL7mPV'

Please press and hold Ctrl and press F5 to reload this page, if the problem persists please send this error message to your webmaster:
'ErrorId: sMqX5IP0qBYYGaZL7mPV
URL: https://etherpad.wikimedia.org/p/teststring
UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0
TypeError: ERROR.captureStackTrace is not a function in https://etherpad.wikimedia.org/p/teststring at line 81'
Chat 0

and then it displays the usual etherpad interface and default placeholder text.
However, trying to type in the etherpad results in a timeout message:

image.png (851×1 px, 198 KB)

with this in webconsole:

POST 
XHR 
https://etherpad.wikimedia.org/socket.io/ [HTTP/2.0 200 OK 96ms]
GET 
XHR 
https://etherpad.wikimedia.org/socket.io/ [HTTP/2.0 200 OK 104ms]
Object { type: "CLIENT_VARS", data: Object }  pad.js:314:27
Firefox can't establish a connection to the server at wss://etherpad.wikimedia.org/socket.io/?EIO=3&transport=websocket&sid=mqmkWfPXUEw5P790ACa9.  socket.io.js:5310:15
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/  teststring:292:4
GET 
XHR 
https://etherpad.wikimedia.org/socket.io/ [HTTP/2.0 200 OK 24563ms]
GET 
XHR 
https://etherpad.wikimedia.org/javascripts/lib/ep_etherpad-lite/static/js/pluginfw/hooks.js [HTTP/2.0 307 Temporary Redirect 97ms]
GET 
XHR 
https://etherpad.wikimedia.org/javascripts/lib/ep_etherpad-lite/static/js/ace2_common.js [HTTP/2.0 200 OK 0ms]
GET 
XHR 
https://etherpad.wikimedia.org/javascripts/lib/ep_etherpad-lite/static/js/ace2_inner.js [HTTP/2.0 200 OK 0ms]
unreachable code after return statement[Learn More]  teststring:567:4
unreachable code after return statement[Learn More]  teststring:2173:4
GET 
XHR 
https://etherpad.wikimedia.org/javascripts/lib/unorm/lib/unorm.js [HTTP/2.0 200 OK 0ms]
unreachable code after return statement[Learn More]  teststring%20line%20234%20%3E%20Function:2173:4
unreachable code after return statement[Learn More]  teststring%20line%20234%20%3E%20Function:567:4
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.  teststring%20line%20234%20%3E%20Function:3753:28
POST 
XHR 
https://etherpad.wikimedia.org/ep/pad/connection-diagnostic-info [HTTP/2.0 200 OK 104ms]
XML Parsing Error: syntax error
Location: https://etherpad.wikimedia.org/ep/pad/connection-diagnostic-info
Line Number 1, Column 1:  connection-diagnostic-info:1:1

Event Timeline

firefox-esr 52.3.0esr-1~deb9u1

and it works for me, i could edit the testpad without such errors...

FF 52.3.0 on OSX not working for me with same symptoms that @Quiddity reports.

Response headers show my requests routing through cp1061 as the first varnish layer.

For my failing client, I see a request for https://etherpad.wikimedia.org/socket.io/?EIO=3&transport=websocket&sid=xSTdXF-JSCKgoYNhACoc return a 400 Bad Request response on the 3rd or 4th polling call (varies slightly by reload).

19:12 < mutante> logs show how users ENTER and LEAVE the Pad "teststring" but that's abou tit
19:12 < mutante> since .. they fail to enter
19:13 < mutante> i suppose
19:17 < mutante> i see some other (non-etherpad) issues that have the same error in common, where it's about Firefox not having Error.captureStackTrace
19:17 < mutante> "Error().stack works universally."
19:18 < mutante> like here, https://github.com/dalen/puppetexplorer/issues/23 nodejs just like etherpad runs on node

or " Error.captureStackTrace is not available in all browsers" at https://github.com/One-com/node-createerror/issues/2

Looks like it is a local extension/add-on that is causing problems. If I launch the same FF 52.3.0 with an empty profile things work fine.

Privacy Badger, uBlock Origin, HTTPS Everywhere, and NoScript all show updates on my browser today.

Updating to Privacy Badger 2017.9.12.1 seems to fix this.

Forcing an update for the addon PrivacyBadger, and restarting browser, fixed it. Thanks, and sorry for the distraction.

I also have uBlock Origin and HTTPS Everywhere enabled, i would suspect Privacy Badger or NoScript.

https://github.com/EFForg/privacybadger/blob/master/doc/Changelog

Changes for Privacy Badger 
====================================
## 2017.9.12.1
* Fixed build script issue that reintroduced major site breakages on Firefox
Aklapper renamed this task from Etherpad connection errors in Firefox - captureStackTrace, XML Parsing Error, connection to the server at wss:// to Etherpad connection errors in Firefox due to PrivacyBadger add-on - captureStackTrace, XML Parsing Error, connection to the server at wss://.Sep 14 2017, 9:21 AM