G
G
Galdar Turin2020-09-14 22:12:34
Node.js
Galdar Turin, 2020-09-14 22:12:34

How to solve net package error?

I found similar problems and there was an advice to terminate or maintain MySQL connections, I did this:

spoiler
setInterval( () => {

    sql.query("SELECT 1", ( error ) => {

        if( error )
        {
            loggers.error( 'Error ping MySQL:  => '+error )
        }

    })

}, 600000);

But the error remains, maybe someone knows how to solve
spoiler
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 question

Ask a Question

731 491 924 answers to any question