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

Err: WebSocket opening handshake was canceled #10

Open
peacemakr opened this issue Dec 5, 2016 · 3 comments
Open

Err: WebSocket opening handshake was canceled #10

peacemakr opened this issue Dec 5, 2016 · 3 comments

Comments

@peacemakr
Copy link

I am getting errors in Chrome after I successfully managed to receive token from my own server and ICE servers list as well

successful requests (shown in blue in Chrome)

xirsys.core.js:229 XHR finished loading: POST "https://domain.org/api/webrtc/signal/token".(anonymous function) @ xirsys.core.js:229
xirsys.core.js:229 XHR finished loading: GET "https://domain.org/api/webrtc/signal/list?secure=0".

Then, errors

xirsys.signal.js:238 WebSocket connection to 'wss://endpoint02.uswest.xirsys.com/ws/v2/...<long token string here>...' failed: WebSocket opening handshake was canceled
next @ xirsys.signal.js:238
init @ xirsys.signal.js:262
openSocket @ xirsys.signal.js:320
constructor @ xirsys.signal.js:87
(anonymous function) @ xirsys.signal.js:381
(anonymous function) @ xirsys.signal.js:496
xhr.onreadystatechange @ xirsys.core.js:209

Then, another one after that

signal.html:122 error:  undefined
(anonymous function) @ signal.html:122
emit @ xirsys.core.js:309
onError @ xirsys.signal.js:524
self.transport.onerror @ xirsys.signal.js:314
GET https://domain.org/xsdk/examples/undefined signal.html:122 error:  undefined:1
(anonymous function) @ signal.html:122
emit @ xirsys.core.js:309
onError @ xirsys.signal.js:524
self.transport.onerror @ xirsys.signal.js:314
source.onerror @ xirsys.signal.js:153
@peacemakr
Copy link
Author

I downloaded the files just now, so should be the latest version in repo and only xirsys_connect.js was modified

@peacemakr
Copy link
Author

first /signal/token request returned the following

{"s":200,"p":"/signal/token","e":null,"d":{"token":"iwtrwrtrewtek534534twretk..........treTRETEWw"}}

and GET request for /list returns the following:

{"s":200,"p":"/signal/list","e":null,"d":{"value":"wss://endpoint01.uswest.xirsys.com:443/ws"}}

@peacemakr
Copy link
Author

Any updates on this issue?

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

1 participant