You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: connect ECONNREFUSED 127.0.0.1:3306
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1146:16)
From event:
at _registerHandshakeCmd (/nsource/nsource/node_modules/mariadb/lib/connection.js:745:11)
at /nsource/nsource/node_modules/mariadb/lib/connection.js:57:11
at new Promise (<anonymous>)
at Connection.connect (/nsource/nsource/node_modules/mariadb/lib/connection.js:56:16)
at createConnectionPoolPromise (/nsource/nsource/node_modules/mariadb/lib/pool-promise.js:31:8)
at creationTryout (/nsource/nsource/node_modules/mariadb/lib/pool-base.js:373:9)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 3306,
fatal: true
}
I would like to handle the error, log a specific file and ignore it.
The text was updated successfully, but these errors were encountered:
@rusher I think I didn't explain it right.
I know the bank is not working. I stopped him.
I would just like to capture the error it generates, from connection ECONNREFUSED in the api, so this error is printed directly on the console and does not enter the exception.
would there be any way to capture this through the exception?
Today I'm dealing with the following way, but I can't capture the expectation.
Sorry for my lack of experience.
And I always get the error.
I would like to handle the error, log a specific file and ignore it.
The text was updated successfully, but these errors were encountered: