question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: LNbank throws error on invoice creation

See original GitHub issue

What is your BTCPay version?

BTCPay v1.7.3.0 LNbank 1.3.8.0

How did you deploy BTCPay Server?

Extended manual setup. Using external LND.

What happened?

LNbank throws error on invoice creation

How did you encounter this bug?

When creating an invoice in LNbank, both through the BTCPay Server web app and through Zeus, I hit the following issue:

Invoice creation failed: Exception of type 'BTCPayServer.JsonHttpException' was thrown.

Revelant log output included.

Relevant log output

Dec 24 23:46:07 45-79-192-236 run.sh[12490]: System.OverflowException: Value was either too large or too small for an Int64.
Dec 24 23:46:07 45-79-192-236 run.sh[12490]:    at System.Decimal.ToInt64(Decimal d)
Dec 24 23:46:07 45-79-192-236 run.sh[12490]:    at NBitcoin.Money.Coins(Decimal coins)
Dec 24 23:46:07 45-79-192-236 run.sh[12490]:    at BTCPayServer.Services.Invoices.PaymentMethod.Calculate(Func`2 paymentPredicate)
Dec 24 23:46:07 45-79-192-236 run.sh[12490]:    at BTCPayServer.HostedServices.InvoiceWatcher.GetNearestClearedPayment(PaymentMethodDictionary allPaymentMethods, PaymentMethodAccounting& accounting) in /home/bitcoin/src/btcpayserver/BTCPayServer/HostedServices/InvoiceWatcher.cs:line 213
Dec 24 23:46:07 45-79-192-236 run.sh[12490]:    at BTCPayServer.HostedServices.InvoiceWatcher.UpdateInvoice(UpdateInvoiceContext context)
Dec 24 23:46:07 45-79-192-236 run.sh[12490]:    at BTCPayServer.HostedServices.InvoiceWatcher.StartLoop(CancellationToken cancellation) in /home/bitcoin/src/btcpayserver/BTCPayServer/HostedServices/InvoiceWatcher.cs:line 320

What browser do you use?

No response

Additional information

No response

Are you sure this is a bug report?

  • I confirm this is a bug report

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Reactions:1
  • Comments:18 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
kaloudiscommented, Jan 6, 2023

I’m basically using this guide https://docs.btcpayserver.org/Deployment/ManualDeploymentExtended/

I don’t have the internal LN node enabled. I’m using a connection string.

0reactions
kaloudiscommented, Feb 15, 2023

@dennisreimann you finally cracked it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

LNURL does not work with c-lightning v0.11.0 · Issue #3720
This error is thrown in ln-service (cc @alexbosworth), so it might an issue on the payer wallet side, not on the payee (BTCPay...
Read more >
I am getting an error while creating my invoice. What should I ...
I am getting an error while creating my invoice. What should I do? Answer. Try searching the error in the help center. There...
Read more >
Resolving invoice amount creating errors - QuickBooks - Intuit
Resolving invoice amount creating errors · Go to the Sales tab and select All sales. · Locate and double-click the payment in the...
Read more >
Invoice Summary Generation Errors
Go to Customization > Scripting > Script Deployments. Expand the Filters area if the filters are not displayed. In the Status filter, select...
Read more >
Q. I am getting an exceeds open value invoice error
This invoice error means the invoice you submitted for processing is over the value of the PO. If you have multiple line items...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found