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
Connected to EventSource changes API (rs = <system>) main.js:14494