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
timeout to exec command #221
Comments
@gabrielmatau79
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello Mates,
I have a problem with exec command in the client telnet, always throws me a time out error can you help me please. the most extrange is that in event (data) i can see the result about cmd.
this it my code:
connection.on('ready', async (cn) => {
console.log("CONEXION REALIZADA");
try {
const res = await connection.exec("selftest", { execTimeout: 2000, maxBufferLength: 7048576, timeout: 4000 });
console.log("**RESULTADO DE LA CONEXION", res);
} catch (err) {
//console.log("Error en el comando: ", err)
}
this it the throws
LOG DATA: selftest
Error en el comando: Error: response not received
at Timeout._onTimeout (C:\Users\Gabriel Mata\Documents\desarrollo\utils\node_modules\telnet-client\lib\index.js:243:36)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
The text was updated successfully, but these errors were encountered: