hello,
I’ve compiled and installed an openvidu server and classroom-demo in Ubuntu 20.04.
but the classroom-demo browser can’t see the video , and reports error in console:
WebSocket connection to 'wss://18.183.92.166:4443/openvidu?sessionId=ses_NtupFDW3OG' failed: main.js 1
I tested curl in another mac, it seems ok.
so what’s the problem?
logs:
zhh@/Users/zhh $ curl -k --no-buffer -H 'Connection: keep-alive, Upgrade' -H 'Upgrade: websocket' -v -H 'Sec-WebSocket-Version: 13' -H 'Sec-WebSocket-Key: websocket' https://18.183.92.166:4443/openvidu\?sessionId\=ses_NtupFDW3OG ws | od -t c
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 18.183.92.166...
* TCP_NODELAY set
* Connected to 18.183.92.166 (18.183.92.166) port 4443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /Users/zhh/anaconda3/ssl/cacert.pem
CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* TLSv1.2 (IN), TLS handshake, Server hello (2):
{ [81 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [913 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [333 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [70 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
{ [1 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: C=ES; ST=Some-State; O=OpenVidu; emailAddress=openvidu@gmail.com
* start date: May 30 15:24:17 2017 GMT
* expire date: May 28 15:24:17 2027 GMT
* issuer: C=ES; ST=Some-State; O=OpenVidu; emailAddress=openvidu@gmail.com
* SSL certificate verify result: self signed certificate (18), continuing anyway.
} [5 bytes data]
> GET /openvidu?sessionId=ses_NtupFDW3OG HTTP/1.1
> Host: 18.183.92.166:4443
> User-Agent: curl/7.61.0
> Accept: */*
> Connection: keep-alive, Upgrade
> Upgrade: websocket
> Sec-WebSocket-Version: 13
> Sec-WebSocket-Key: websocket
>
{ [5 bytes data]
< HTTP/1.1 101
< Vary: Origin
< Vary: Access-Control-Request-Method
< Vary: Access-Control-Request-Headers
< Set-Cookie: OVJSESSIONID=FDC43529EAEDBCF6D747E33F569A6C6D; Path=/; Secure; HttpOnly
< Upgrade: websocket
< Connection: upgrade, keep-alive
< Sec-WebSocket-Accept: qVby4apnn2tTYtB1nPPVYUn68gY=
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: 0
< Strict-Transport-Security: max-age=31536000 ; includeSubDomains
< X-Frame-Options: DENY
< Date: Mon, 18 Oct 2021 00:18:01 GMT
< Keep-Alive: timeout=60