我们使用Twilio Video开发我们的系统,我可以将系统与我自己的笔记本电脑一起使用,但是在尝试连接Chrome浏览器时工作的笔记本电脑出错了。
我收到以下错误:
WebSocket connection to 'wss://endpoint.twilio.com/' failed: Error during WebSocket handshake: 'Upgrade' header is missing
完整错误文本如下:
twilio-video.js:20135 WebSocket connection to 'wss://endpoint.twilio.com/' failed: Error during WebSocket handshake: 'Upgrade' header is missing
connect @ twilio-video.js:20135
Transport @ twilio-video.js:20025
(anonymous) @ twilio-video.js:21181
twilio-video.js:14542 Tue Nov 28 2017 11:07:49 GMT+0300 (Turkey Standard Time) | sip.transport | WebSocket connection error: {"isTrusted":true}
LoggerFactory.print @ twilio-video.js:14542
LoggerFactory.(anonymous function) @ twilio-video.js:14559
Logger.(anonymous function) @ twilio-video.js:14553
onError @ twilio-video.js:20315
ws.onerror @ twilio-video.js:20155
twilio-video.js:14542 Tue Nov 28 2017 11:07:49 GMT+0300 (Turkey Standard Time) | sip.transport | WebSocket disconnected (code: 1006)
twilio-video.js:14542 Tue Nov 28 2017 11:07:49 GMT+0300 (Turkey Standard Time) | sip.transport | WebSocket abrupt disconnection
LoggerFactory.print @ twilio-video.js:14542
LoggerFactory.(anonymous function) @ twilio-video.js:14559
Logger.(anonymous function) @ twilio-video.js:14553
onClose @ twilio-video.js:20204
ws.onclose @ twilio-video.js:20147
twilio-video.js:14542 Tue Nov 28 2017 11:07:49 GMT+0300 (Turkey Standard Time) | sip.ua | transport wss://endpoint.twilio.com failed | connection state set to 2
twilio-video.js:14542 Tue Nov 28 2017 11:07:49 GMT+0300 (Turkey Standard Time) | sip.ua | next connection attempt in 28 seconds
twilio-video.js:14542 Tue Nov 28 2017 11:08:17 GMT+0300 (Turkey Standard Time) | sip.transport | connecting to WebSocket wss://endpoint.twilio.com
twilio-video.js:20135 WebSocket connection to 'wss://endpoint.twilio.com/' failed: Error during WebSocket handshake: 'Upgrade' header is missing
connect @ twilio-video.js:20135
Transport @ twilio-video.js:20025
(anonymous) @ twilio-video.js:21181
twilio-video.js:14542 Tue Nov 28 2017 11:08:19 GMT+0300 (Turkey Standard Time) | sip.transport | WebSocket connection error: {"isTrusted":true}
LoggerFactory.print @ twilio-video.js:14542
LoggerFactory.(anonymous function) @ twilio-video.js:14559
Logger.(anonymous function) @ twilio-video.js:14553
onError @ twilio-video.js:20315
ws.onerror @ twilio-video.js:20155
twilio-video.js:14542 Tue Nov 28 2017 11:08:19 GMT+0300 (Turkey Standard Time) | sip.transport | WebSocket disconnected (code: 1006)
twilio-video.js:14542 Tue Nov 28 2017 11:08:19 GMT+0300 (Turkey Standard Time) | sip.transport | WebSocket abrupt disconnection
LoggerFactory.print @ twilio-video.js:14542
LoggerFactory.(anonymous function) @ twilio-video.js:14559
Logger.(anonymous function) @ twilio-video.js:14553
onClose @ twilio-video.js:20204
ws.onclose @ twilio-video.js:20147
twilio-video.js:14542 Tue Nov 28 2017 11:08:19 GMT+0300 (Turkey Standard Time) | sip.ua | transport wss://endpoint.twilio.com failed | connection state set to 2
twilio-video.js:14542 Tue Nov 28 2017 11:08:19 GMT+0300 (Turkey Standard Time) | sip.ua | next connection attempt in 30 seconds
twilio-video.js:14542 Tue Nov 28 2017 11:08:49 GMT+0300 (Turkey Standard Time) | sip.transport | connecting to WebSocket wss://endpoint.twilio.com
我们甚至不了解实际上是什么问题。
答案 0 :(得分:0)
此错误消息表示您尝试连接到HTTP服务器而不是WebSocket服务器。
可能的原因: