Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exception when client.ping is called against unresponsive Solr instance #337

Open
julianlam opened this issue Jan 30, 2022 · 0 comments

Comments

@julianlam
Copy link
Collaborator

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 -v
v14.18.1
(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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant