nkashyap / console.io

JavaScript Remote Web Console
http://nkashyap.github.io/console.io
189 stars 20 forks source link

[BUG]: server crasher when trying to open Maple using the browser #2

Closed maciejblinkbox closed 11 years ago

maciejblinkbox commented 11 years ago

I'm using Chrome to connect to Samsung 2012 (Kara Milovy). TV connects fine, website loads in Chrome fine. When I double click on Maple in Device list the server crashes with the following:

C:\dev\github\console.io>sta 'sta' is not recognized as an internal or external command, operable program or batch file.

C:\dev\github\console.io>start.bat

C:\dev\github\console.io>node ./server/main.js Console.IO Dev is run at http://localhost:8082

C:\dev\github\console.io\server\user.js:32 this.emit('subscribed', this.manager.getDeviceByGuid(guid).getIdentity ^ TypeError: Cannot call method 'getIdentity' of undefined at User.subscribe (C:\dev\github\console.io\server\user.js:32:68) at C:\dev\github\console.io\server\manager.js:54:32 at Socket.setRoute (C:\dev\github\console.io\node_modules\express.io\compiled\index.js:250:16) at Socket.EventEmitter.emit as $emit at SocketNamespace.handlePacket (C:\dev\github\console.io\node_modules\express.io\node_modules\socket.io\lib\namespace.js:335:22) at Manager.onClientMessage (C:\dev\github\console.io\node_modules\express.io\node_modules\socket.io\lib\manager.js:488:38) at WebSocket.Transport.onMessage (C:\dev\github\console.io\node_modules\express.io\node_modules\socket.io\lib\transport.js:387:20) at Parser. (C:\dev\github\console.io\node_modules\express.io\node_modules\socket.io\lib\transports\websocket\hybi-16.js:39:10) at Parser.EventEmitter.emit (events.js:96:17) at opcodeHandlers.1.finish (C:\dev\github\console.io\node_modules\express.io\node_modules\socket.io\lib\transports\websocket\hybi-16.js:288:16)

C:\dev\github\console.io>

image

image

nkashyap commented 11 years ago

After some investigation it looks like Console.IO is not able to set GUID cookie onto device, something wrong with the device

maciejblinkbox commented 11 years ago

Yep, there is something wrong with the device browser. Nodejs seems to be ok.