btcpayserver: [Bug]: LNbank throws error on invoice creation
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
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 18 (15 by maintainers)
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.