Skip to content
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

Connections failed on SSL #554

Open
alexolliveira opened this issue Sep 9, 2021 · 2 comments
Open

Connections failed on SSL #554

alexolliveira opened this issue Sep 9, 2021 · 2 comments

Comments

@alexolliveira
Copy link

Hello for everyone.
Even using 0.0.0.0, even using wss://, the websocket shows me a error:' WebSocket connection to 'wss://0.0.0.0:8081/' failed.
Error on line on Autobahn.js: self._websocket = new WebSocket(self._wsuri, [ab._subprotocol]);
Help me please.

@om26er
Copy link
Contributor

om26er commented Sep 9, 2021

use ws instead of wss. I am pretty sure you dont have a certificate for 0.0.0.0

@alexolliveira
Copy link
Author

@om26er
I'm using SSL on my page. But even with https, it doesn't work.

A page at 'https://mysite.app/test.htm' was loaded over HTTPS but tried to connect to the insecure WebSocket endpoint 'ws: // machineip: 8080 /'. This request has been blocked; this terminal must be available in WSS.
Failed to build 'WebSocket': An insecure WebSocket connection cannot be found from a page loaded over HTTPS.
in the new ab.Session (https://mysite.app/static/js/autobahn.js:341:26)

But when I connect using the wss: // protocol, an error is set:
Failed to build 'WebSocket': An insecure WebSocket connection cannot be found from a page loaded over HTTPS.
in the new ab.Session (https://mysite.app/static/js/autobahn.js:341:26)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants