Skip to content

LND Accounts: Improve error message for insufficient funds #963

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

Open
Liongrass opened this issue Feb 5, 2025 · 0 comments
Open

LND Accounts: Improve error message for insufficient funds #963

Liongrass opened this issue Feb 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Liongrass
Copy link

Liongrass commented Feb 5, 2025

Expected behavior

I am using litd with LND Accounts. I have a balance and am trying to pay an invoice for an amount larger than that.

I expect the lncli payinvoice request to fail with an error along the lines of:

Insufficient amount. Invoice of Y sats is larger than balance of X sats

Actual behavior

Instead, I get the following error message

[lncli] rpc error: code = Unknown desc = no request values found for request: 29618

I believe this error message is potentially confusing and lead people to believe they are encountering a complex issue or bug.

System information

litd version 0.14.0-alpha commit=v0.14.0-alpha-dirty

@Liongrass Liongrass added the bug Something isn't working label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant