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

[Feature Request] Better error message(s) when lnd host unreachable #15

Open
aphex3k opened this issue Apr 24, 2023 · 0 comments
Open

Comments

@aphex3k
Copy link

aphex3k commented Apr 24, 2023

I updated my config.json and changed (fat-fingered) the hostname to a wrong value. The hostname would basically fail to resolve.

The script will then return the below error when it tries to connect to the lnd host:

node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "[object Array]".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v19.4.0

If we could make this a little more human readable, that would be appreciated.

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