-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Labels
Description
Hi, guys
I met a issue when i try to connect with subway.
In my server, i deployed two service ‘subway' and 'ircdjs'.
After i inputed my server ip to subway website, click the button 'connect', The server output some error logs below:
7 Oct 00:33:13 - SEND: NICK oo
17 Oct 00:33:13 - SEND: USER subway 8 * :nodeJS IRC client
17 Oct 00:33:13 - NICK: null changes nick to oo
{ prefix: 'null!null@107.170.233.130',
nick: 'null',
user: 'null',
host: '107.170.233.130',
command: 'NICK',
rawCommand: 'NICK',
commandType: 'normal',
args: [ 'oo' ],
client_server: '107.170.233.130' }
/home/abruzzi/public/subway/node_modules/irc/lib/irc.js:664
throw err;
^
TypeError: Cannot call method 'get' of undefined
at util.handle_irc (/home/abruzzi/public/subway/src/js/handle_irc.js:150:18)
at Client.<anonymous> (/home/abruzzi/public/subway/lib/connection.js:68:7)
at Client.emit (events.js:117:20)
at /home/abruzzi/public/subway/node_modules/irc/lib/irc.js:661:22
at Array.forEach (native)
at Socket.<anonymous> (/home/abruzzi/public/subway/node_modules/irc/lib/irc.js:655:15)
at Socket.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:764:14)
at Socket.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:426:10)
I found the code in src/js/handle_irc.js:
var conn = irc.get("connections");
// Alias the long namespace
var server = conn.get(message.client_server);
and outputed this two variables 'conn' and 'server' with console.log, i got the results below:
// console.log(conn);
{ length: 0, models: [], _byId: {} }
// console.log(server);
undefined
Is there something wrong in my config?
Thx.