New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WebSocket] SYNTAX_ERR: invalid url: wss://... #14
Comments
Ok, the issue is that "this.base.options.port" is empty: node_modules/socket.io/support/socket.io-client/socket.io.js:819: + ':' + this.base.options.port When setting the port to 443 manually it works using Firefox and Opera*.
|
And here is a quickfix: --- orig/node_modules/socket.io/support/socket.io-client/socket.io.js 2011-05-23 22:38:54.000000000 +0200 +++ patched/node_modules/socket.io/support/socket.io-client/socket.io.js 2011-05-25 13:55:32.000000000 +0200 @@ -814,6 +814,9 @@ if (typeof window != 'undefined'){ * @api private */ WS.prototype.prepareUrl = function(){ + /* Quick workaround for issue 14: */ + if ('' == this.base.options.port) + this.base.options.port = this.base.options.secure ? '443' : '80' return (this.base.options.secure ? 'wss' : 'ws') + '://' + this.base.host + ':' + this.base.options.port |
You should submit that to the socket.io repository. |
You might be right, although the "fix" is very ugly and doesn't solve the root cause. Anyway: socketio/socket.io#161 (hope this is the correct repository). |
It might not like the way I'm initalizing socket.io https://github.com/Pita/etherpad-lite/blob/master/static/js/pad2.js#L63 - I will experiment tomorrow with that. |
I think I solved that with this commit Pita/etherpad-lite@18ec4da |
Drop cookies expiration to Session
Might be related with #11 or an invalid server certificate. When opening a new/existing pad I receive the following error messages in the browser log and the GUI does not respond (Safari 5. and Chrome 13 are working fine):
Firefox 5:
Opera 11.11:
The text was updated successfully, but these errors were encountered: