Closed PiBgierka closed 3 years ago
Because you're disconnecting after handling errors in the whole Promise chain. In case the auth fails (the Authentication failed
error), the RCON instance isn't authed thus the disconnect fails.
I'll close this issue since it is caused by your code and not by the library.
so how handle that error :) cuz I only got RconError: Authentication failed :) and i got that only for one server. Others works. Rcon is enabled and password is good so?
(node:577) UnhandledPromiseRejectionWarning: RconError: Instance is not authed at /home/runner/mcbot/node_modules/modern-rcon/rcon.js:70:42 at new Promise (<anonymous>) at Rcon.disconnect (/home/runner/mcbot/node_modules/modern-rcon/rcon.js:69:12) at /home/runner/mcbot/index.js:300:27 at processTicksAndRejections (internal/process/task_queues.js:97:5)
When i try example code and .disconnect() i got that error on some servers :# why?