簡體   English   中英

OpenTok JS websocket連接超時問題

[英]OpenTok JS websocket connection timeout issue

我正在使用opentok客戶端JS api OpenTok.js 2.14.6 753045900來設置視頻會議應用程序。 間歇性地,它會在Chrome控制台中引發錯誤:

WebSocket connection to 'wss://mantis002-ams.tokbox.com/rumorwebsocketsv2?socketId=12796b11-4174-431e-980f-52c29c32aa0d&attempt=b58d3a4d-7721-4e93-b39b-76224b00864a' failed: WebSocket is closed before the connection is established.

WebSocket connection to 'wss://mantis002-ams.tokbox.com/rumorwebsocketsv2?socketId=12796b11-4174-431e-980f-52c29c32aa0d&attempt=0d49b33e-33b9-4eec-a6d4-80ea6d7908ec' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT

OT:RumorSocket:1 Error code unavailable. OT.Raptor.Socket error: e {code: 4020, message: "Error code unavailable."} OT_SOCKET_CLOSE_FALLBACK_CODE: Error code unavailable. OT.exception :: title: undefined (4020) msg: Error code unavailable.

s {code: 4020, message: "Error code unavailable.", name: "OT_SOCKET_CLOSE_FALLBACK_CODE", stack: "Error: Error code unavailable.↵ at https://stat…tatic.opentok.com/v2/js/opentok.min.js:29:247034)"}

An error occurred in an event handler TypeError: Cannot read property 'id' of null at index.js:455 at P (RaptorSocket.js:75) at r (RaptorSocket.js:265) at d.triggerCallback (Dispatcher.js:32) at n.<anonymous> (SessionDispatcher.js:179) at n.emit (events.js:84) at d.trigger (eventing.js:321) at d.emit (eventing.js:330) at RaptorSocket.js:279

如何正確處理這種情況,因為似乎重新連接在OpenTok.js中不起作用? 當我嘗試重新創建會話時,我收到了

OT.exception :: title: Unexpected Server Response (2001) msg: Unexpected server response. Try this operation again later.

{ code: 2001, message: "Unexpected server response. Try this operation again later.", name: "OT_UNEXPECTED_SERVER_RESPONSE", stack: "Error: Unexpected server response. Try this operat…/static.opentok.com/v2/js/opentok.min.js:23:8742)"} mixin.js:23 OT:RumorSocket:49 The connection is being terminated because the endpoint has indicated that reconnections are not available. (CLOSE_UNSUPPORTED)

這里是TokBox開發人員的傳播者。

您能否將帶有sessionId和日志的電子郵件發送至support@tokbox.com? 支持團隊將能夠幫助您發現根本問題。 您還可以使用會話檢查器工具獲取高級摘要,以幫助您查明連接錯誤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM