Skip to content
This repository has been archived by the owner on Apr 1, 2018. It is now read-only.

TypeError when choosing nickname #143

Closed
ghost opened this issue Oct 31, 2017 · 2 comments
Closed

TypeError when choosing nickname #143

ghost opened this issue Oct 31, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 31, 2017

Hello.

I successfully installed everything, when npm start, it works.

I go on a random generated chat like banana, I put my nick, I click "OK" then:
Server disconnected. Attempting to reconnect...

and on the server console:

                    socket._receiver.flush();
                                     ^

TypeError: socket._receiver.flush is not a function
at WebSocket. (/root/hack.chat/server.js:64:21)
at emitOne (events.js:77:13)
at WebSocket.emit (events.js:169:7)
at Receiver._ultron.on._receiver.onmessage (/root/hack.chat/node_modules/ws/lib/WebSocket.js:146:47)
at Receiver.dataMessage (/root/hack.chat/node_modules/ws/lib/Receiver.js:389:14)
at Receiver.getData (/root/hack.chat/node_modules/ws/lib/Receiver.js:330:12)
at Receiver.startLoop (/root/hack.chat/node_modules/ws/lib/Receiver.js:165:16)
at Receiver.add (/root/hack.chat/node_modules/ws/lib/Receiver.js:139:10)
at Socket. (/root/hack.chat/node_modules/ws/lib/WebSocket.js:142:22)
at emitOne (events.js:77:13)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-10-31T13_59_06_273Z-debug.log

data contained in /root/.npm/_logs/2017-10-31T13_59_06_273Z-debug.log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]prestart: [email protected]
6 info lifecycle [email protected]
start: [email protected]
7 verbose lifecycle [email protected]start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/root/hack.chat/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
9 verbose lifecycle [email protected]start: CWD: /root/hack.chat
10 silly lifecycle [email protected]
start: Args: [ '-c', 'node server.js' ]
11 silly lifecycle [email protected]start: Returned: code: 1 signal: null
12 info lifecycle [email protected]
start: Failed to exec start script
13 verbose stack Error: [email protected] start: node server.js
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:280:16)
13 verbose stack at emitTwo (events.js:87:13)
13 verbose stack at EventEmitter.emit (events.js:172:7)
13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:87:13)
13 verbose stack at ChildProcess.emit (events.js:172:7)
13 verbose stack at maybeClose (internal/child_process.js:862:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
14 verbose pkgid [email protected]
15 verbose cwd /root/hack.chat
16 verbose Linux 2.6.32-042stab123.9
17 verbose argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
18 verbose node v4.8.2
19 verbose npm v5.5.1
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: node server.js
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Plz help

@raf924
Copy link

raf924 commented Oct 31, 2017

It'd be nice if people went to browse the issues a bit before posting new ones : #136

@AndrewBelt
Copy link
Owner

Thanks @raf924, duplicate of #136

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants