Closed alexporto2200 closed 2 years ago
please use stackoverflow for question like this. ECONNREFUSED => port is not open. you have no mariadb server on 127.0.0.1:3306
@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?
Could be related to https://github.com/mariadb-corporation/mariadb-connector-nodejs/issues/180
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.