3.0 - could not make WebSockets work.

415 views
Skip to first unread message

James Tan

unread,
Nov 6, 2014, 3:09:31 PM11/6/14
to rav...@googlegroups.com
I added websockets IIS support as http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-websocket-protocol-support on the test instances runs on windows 2012.
But it always shows message below. Is there any other configuration need to be done?

Thanks

James

"
EventSource API is going to be used instead. However, multi tab usage isn't supported. WebSockets are only supported on servers running on Windows Server 2012 and equivalent.

Kijana Woodard

unread,
Nov 6, 2014, 3:30:10 PM11/6/14
to rav...@googlegroups.com
Hmmm. Raven 3 was the final straw to get me to upgrade to win 8.1 for dev.
Turned on websockets, no more warning.

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Oren Eini (Ayende Rahien)

unread,
Nov 7, 2014, 2:54:09 AM11/7/14
to ravendb
Can you look at this via Fiddler?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--

Oren Eini (Ayende Rahien)

unread,
Nov 7, 2014, 3:04:23 AM11/7/14
to ravendb
Also, can you look at the browser console?

Oren Eini (Ayende Rahien)

unread,
Nov 7, 2014, 3:14:51 AM11/7/14
to ravendb

James Tan

unread,
Nov 7, 2014, 11:53:38 AM11/7/14
to rav...@googlegroups.com
Not sure if it is fixed. Here is the error in build 3506 through chrome javascript console.

WebSocket connection to 'ws://server/changes/websocket?singleUseAuthToken=4a8743ca-f428-4850-be9e-29172b9fad8a&id=BFYcg&coolDownWithDataLoss=0&isMultyTenantTransport=false' failed: HTTP Authentication failed; no valid credentials available 

Oren Eini (Ayende Rahien)

unread,
Nov 7, 2014, 2:12:31 PM11/7/14
to ravendb
That is really interesting. Can you send the full Fiddler output?
How are you authenticating against this?

James Tan

unread,
Nov 10, 2014, 10:16:54 AM11/10/14
to rav...@googlegroups.com
The fiddler has nothing for this. This log was from javascript debugger.

To simplify the debugging, I disabled windows authentication and test it again on two environments:
1. WIndows 2012 with test DB.
2. WIndows 8.1 with empty db

I am getting same "Unexpected response code:400" error and websockets does not work.

XHR finished loading: GET "http://RavenDB/singleAuthToken?_=1415632020162". index.html:8605send index.html:8605jQuery.extend.ajax index.html:8133commandBase.ajax main.js:6062commandBase.query main.js:5921getSingleAuthTokenCommand.execute main.js:8593changesApi.connect main.js:14424changesApi main.js:14410(anonymous function) main.js:32948fire index.html:3096self.add index.html:3142shell main.js:32947system.resolveObject main.js:2123(anonymous function) main.js:822(anonymous function) index.html:3253fire index.html:3096self.fireWith index.html:3208deferred.(anonymous function) index.html:3298(anonymous function) main.js:2220

WebSocket connection to 'ws://RavenDB/changes/websocket?singleUseAuthToken=48f1f616-2132-4975-8d44-eaae725823ff&id=k6nDy&coolDownWithDataLoss=0&isMultyTenantTransport=false' failed: Error during WebSocket handshake: Unexpected response code: 400 main.js:14448

XHR finished loading: GET "http://RavenDB/singleAuthToken?_=1415632020163". index.html:8605send index.html:8605jQuery.extend.ajax index.html:8133commandBase.ajax main.js:6062commandBase.query main.js:5921getSingleAuthTokenCommand.execute main.js:8593changesApi.connect main.js:14424changesApi.serverNotSupportingWebsocketsErrorHandler main.js:14531webSocket.onerror main.js:14455
XHR finished loading: POST "http://RavenDB/queries". index.html:8605
XHR finished loading: GET "http://RavenDB/license/status?_=1415632020169". index.html:8605
XHR finished loading: GET "http://RavenDB/databases/ltssV3Voron/stats?_=1415632020171". index.html:8605
XHR finished loading: GET "http://RavenDB/studio/version.json?_=1415632020168". index.html:8605
Connected to EventSource changes API (rs = <system>) main.js:14494

Oren Eini (Ayende Rahien)

unread,
Nov 11, 2014, 6:09:21 AM11/11/14
to ravendb
Reply all
Reply to author
Forward
0 new messages