-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ERR_SSL_PROTOCOL_ERROR #449
Comments
Do you want to use SSL or not? if you dont use SSL, don't pass httpS. If you want to use SSL, you will need to change the port (next week we will publish a new version with a fix). So in the configuration options, pass:
|
|
Let me do it as you say an come back to you. |
The problem persist |
Sorry: host: "0.peerjs.com" PD: remove https:// |
is it resolved? |
Hi, I'm having the same problem, was it fixed? |
I have it too! what I have In JS I have no SSL references, but my domain sits on valid https URL. var peer = new Peer({
host: "my_unsecure_peerjs_server",
port: 9000
}) Expected my_unsecure_peerjs_server:9000/peerjs/peerjs/id in my Chrome browser gives me UUID seamlessly. UPD solved var peer = new Peer({
host: "my_unsecure_peerjs_server",
secure: false,
port: 9000
}) now I need to solve UPD 2 Really solved by now! I was wrong yesterday. Now the Mixed Content issue is solved, it require var peer = new Peer({
host: "my_peerjs_server_with_ssl_cert",
secure: true,
path: '/peerjs'
}); |
I do have a similar issue with Mixed content after setting the secure to false, the Id does not get delivered to client. Will keep posted if i find a solution, anybody else who did fix this can be of quick support to us. |
I think it is OK to receive Mixed content error in my case, that is how SSL should work. https://developers.google.com/web/fundamentals/security/prevent-mixed-content/what-is-mixed-content The only way I managed to solve it - put my peerjs-server behind reverse-proxy Nginx with SSL cert and solve trouble with headers (this Nginx proxy I don't control, my admin pal did it for me). |
Now the Mixed Content issue is solved, it require var peer = new Peer({
host: "my_peerjs_server_with_ssl_cert",
secure: true,
path: '/peerjs'
}); |
I had set this to true earlier, however i had a different issue which was related to certificate, I had pointed to a wrong certificate. By the way, i did install the turnserver on my localsystem and using the same instead of google. Anyways thanks for update. - Yeshwanth Hegde K |
I did set the secure: true, however realised my issue was a bit different as i had pointed to a wrong certificate file once this was done got the issue solved. In the process I did went ahead and installed turnserver locally and now entire feature works without anyissue. Thanks for update. , |
You can host your own peerjs .js file on your server and start it using node peer.js. tha path can be /myapp and port 3000 Ensure you specify the sssl key and cert if your domain uses https. Then on your client side connect like this
|
Hello
I am using PeerJS to implement a video conference web app.
I got this error while creating an instance of Peer object withought giving a key:
GET https://0.peerjs.com:9000/peerjs/id?ts=15377843943420.9081415662556815 net::ERR_SSL_PROTOCOL_ERROR
The text was updated successfully, but these errors were encountered: