In this specific case, there is no Solr instance available, so the connection is closed/refused. When the client attempts to call client.ping(), it throws an exception that I cannot catch, and crashes the Node.js server.
(node:12938) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 127.0.0.1:8983
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16)
at TCPConnectWrap.callbackTrampoline (internal/async_hooks.js:130:17)
In this specific case, there is no Solr instance available, so the connection is closed/refused. When the client attempts to call
client.ping(), it throws an exception that I cannot catch, and crashes the Node.js server.