Closed hlxid closed 4 years ago
When a RCON instance exists and the server can't be reached the RCON service lets NodeCG crash because of an exception even though there is a try catch block in the createClient function of the RCON Service: https://github.com/codeoverflow-org/nodecg-io/blob/413d0dfaa34d9bcbf63c4c91c9ecf3a98c00b7ab/nodecg-io-rcon/extension/index.ts#L55-L71
createClient
UNCAUGHT EXCEPTION! NodeCG will now exit. { Error: connect ECONNREFUSED 127.0.0.1:25575 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1083:14) errno: 'ECONNREFUSED', code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 25575 }
RCON PR: #16
This also occurs when using a websocket-client tries to connect to a server.
Description
When a RCON instance exists and the server can't be reached the RCON service lets NodeCG crash because of an exception even though there is a try catch block in the
createClient
function of the RCON Service: https://github.com/codeoverflow-org/nodecg-io/blob/413d0dfaa34d9bcbf63c4c91c9ecf3a98c00b7ab/nodecg-io-rcon/extension/index.ts#L55-L71How to reproduce
Error Log
References
RCON PR: #16