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

server falls with bad cookie header #171

Closed
iipokypatop opened this issue Jan 27, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@iipokypatop
Copy link

@iipokypatop iipokypatop commented Jan 27, 2017

Node server falls.
I think problem is in request without or bad cookie header.

/home/deploy/proj/shared/node_modules/nes/lib/socket.js:540
const auth = state[config.cookie];
^

TypeError: Cannot read property 'nes' of null
at /home/deploy/proj/shared/node_modules/nes/lib/socket.js:540:27
at internals.Definitions.parse.Items.serial.internals.unsign.Items.serial.internals.unsign [as parse] (/home/deploy/proj/shared/node_modules/hapi/node_modules/statehood/lib/index.js:133:16)
at internals.Socket._send.internals.Socket._flush.internals.Socket._onMessage.internals.Socket._processHello.internals.Socket._processHelloSubscriptions.internals.Socket._processRequest.internals.Socket._processMessage.internals.Socket._processSubscription.internals.Socket._authenticate (/home/deploy/proj/shared/node_modules/nes/lib/socket.js:538:39)
at new module.exports.internals.Socket.listener (/home/deploy/proj/shared/node_modules/nes/lib/socket.js:41:10)
at module.exports.internals.Listener._add.ws.once [as _add] (/home/deploy/proj/shared/node_modules/nes/lib/listener.js:74:20)
at WebSocketServer. (/home/deploy/proj/shared/node_modules/nes/lib/listener.js:53:14)
at emitOne (events.js:77:13)
at WebSocketServer.emit (events.js:169:7)
at /home/deploy/proj/shared/node_modules/nes/node_modules/ws/lib/WebSocketServer.js:91:14
at completeHybiUpgrade2 (/home/deploy/proj/shared/node_modules/nes/node_modules/ws/lib/WebSocketServer.js:284:5)
at completeHybiUpgrade1 (/home/deploy/proj/shared/node_modules/nes/node_modules/ws/lib/WebSocketServer.js:309:13)
at WebSocketServer.handleHybiUpgrade (/home/deploy/proj/shared/node_modules/nes/node_modules/ws/lib/WebSocketServer.js:337:3)
at WebSocketServer.handleUpgrade (/home/deploy/proj/shared/node_modules/nes/node_modules/ws/lib/WebSocketServer.js:173:26)
at Server.WebSocketServer._onServerUpgrade (/home/deploy/proj/shared/node_modules/nes/node_modules/ws/lib/WebSocketServer.js:89:12)
at emitThree (events.js:97:13)
at Server.emit (events.js:175:7)

@hueniverse hueniverse self-assigned this Mar 20, 2017
@hueniverse hueniverse added the bug label Mar 20, 2017
@hueniverse hueniverse added this to the 6.4.1 milestone Mar 20, 2017
@hueniverse hueniverse added the security label Mar 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.