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.

BTCPayServer attempting to connect to Eclair using TLS

See original GitHub issue

Describe the bug When creating an invoice using the /invoices/create page it’s no longer possible to use BTC currency. I remember this being possible in the past, so I’m filling this as a bug.

To Reproduce the bug Steps to reproduce the reported bug:

  1. Go to “Invoices” page
  2. Click on “Create an invoice”
  3. Fill amount (e.g. 0.0001, doesn’t matter)
  4. Enter “BTC” (without quotes) into the “Currency” field
  5. Click Create

Expected behavior

An invoice is created with specified amount in BTC.

(Ideally SAT would be possible too, but that’d be a feature request, not a bug.)

Screenshots

Create an invoice - error "Please make sure you entered a valid currency symbol, a rate provider is configured in store settings, and your configured rate provider is both online and providing rates for your selected currency."

Your BTCPay Environment (please complete the following information):

  • BTCPay Server Version: 1.3.1
  • Deployment Method: Debian package
  • Browser: Firefox ESR (probably irrelevant)

Logs (if applicable)

2021-11-02 17:30:04.436 +01:00 [ERR] Invoice creation failed due to invalid currency BTC
BTCPayServer.BitpayHttpException: 11/02/2021 16:30:04:Info Creation of invoice starting

   at BTCPayServer.Controllers.InvoiceController.CreateInvoiceCoreRaw(InvoiceEntity entity, StoreData store, IPaymentFilter invoicePaymentMethodFilter, String[] additionalSearchTerms, CancellationToken cancellationToken)
   at BTCPayServer.Controllers.InvoiceController.CreateInvoiceCoreRaw(BitpayCreateInvoiceRequest invoice, StoreData store, String serverUrl, List`1 additionalTags, CancellationToken cancellationToken) in /home/user/cadr-build/btcpayserver-1.3.1/BTCPayServer/Controllers/InvoiceController.cs:line 156
   at BTCPayServer.Controllers.InvoiceController.CreateInvoiceCore(BitpayCreateInvoiceRequest invoice, StoreData store, String serverUrl, List`1 additionalTags, CancellationToken cancellationToken) in /home/user/cadr-build/btcpayserver-1.3.1/BTCPayServer/Controllers/InvoiceController.cs:line 82
   at BTCPayServer.Controllers.InvoiceController.CreateInvoice(CreateInvoiceModel model, CancellationToken cancellationToken) in /home/user/cadr-build/btcpayserver-1.3.1/BTCPayServer/Controllers/InvoiceController.UI.cs:line 868

Setup Parameters

N/A

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
Kixunilcommented, Nov 5, 2021

I just realized I forgot to switch store in the latter tests - after 1.3.2 and the previous issue magically fixed itself. Closing now and if it ever repeats I’ll probably open a new one. Sorry for the noise.

1reaction
pavlenexcommented, Nov 4, 2021

It seems that in #3065 we’ll be able to have better error messages so we can see what an underlaying error of this issue may be. Let’s wait for 1.3.2 and fix this afterwards.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lightning Network FAQ
Lightning Network FAQ. This document clarifies some of the most common questions and issues users face with the Lightning Network in BTCPay.
Read more >
Eclair test connection fails · Issue #2036 · btcpayserver ...
Go to Store settings; Click on Modify Lightning; Click Use the internal lightning node of this BTCPay Server instance by clicking here. Click ......
Read more >
How to Accept Bitcoin and Lightning Network Payments
This article will go over how to connect your Lightning Node to your BTCPayServer instance, how to create a sales interface for a...
Read more >
BTCPayWall (en) - Ereignishorizont
The BTCPayWall is a WordPress plugin that you can integrate into your website. With it, anyone can monetize their website quite easily.
Read more >
Errors when applications try to connect to SQL Server in ...
Applications experience forcibly closed TLS connection errors when connecting SQL Servers in Windows · In this article · Symptoms · Cause.
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