Answer the question
In order to leave comments, you need to log in
How to solve net package error?
I found similar problems and there was an advice to terminate or maintain MySQL connections, I did this:
setInterval( () => {
sql.query("SELECT 1", ( error ) => {
if( error )
{
loggers.error( 'Error ping MySQL: => '+error )
}
})
}, 600000);
events.js:292
throw er; // Unhandled 'error' event
^
Error: read ETIMEDOUT
at TCP.onStreamRead (internal/stream_base_commons.js:205:27)
Emitted 'error' event on Socket instance at:
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'read'
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question