Skip to content

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

@julianlam

Description

@julianlam

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions