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.

Unable to add or pay invoices

See original GitHub issue

I’m using LndHub with BTCPayServer (docker). When trying to create an invoice in BlueWallet, after a while the app shows an Alert dialog indicating that the call to /addinvoice had timed out, showing an HTTP 504 error from nginx:

API failure: Error {
  "type": "default",
  "status": 504,
  "ok": false,
  "statusText": "",
  "headers": {..., "server": "nginx",...},
  "url": "https://<myservername>/bluewallet_lndhub_app/addinvoice",

In the LndHub logs, I can see the beginning of the /addinvoice router processing:

$ docker logs --tail 1000 bluewallet_lndhub_app
2022-08-02T18:00:48.528Z : info: [/addinvoice] : ["<my-req-id>"]
2022-08-02T18:00:48.533Z : info: [/addinvoice] : ["<my-req-id>","userid: <myuserid>"]

So I know it made it to at least line 185:

After a long while, the logs show the POST. My guess is that this is when nginx broke off waiting, but I’m not sure.

<my-req-id> <my ip address> - - [02/Aug/2022:18:01:48 +0000] "POST /addinvoice HTTP/1.1" - - "-" "BlueWallet/1656866507 CFNetwork/1333.0.4 Darwin/21.5.0"

I also cannot pay invoices. Paying gives less information. The Alert box just says “Network request failed”. Logs are similar.

I suspect that there’s some kind of connection issue with LndHub talking to lnd but I don’t know what to do next to investigate further. This used to work, so I’m wondering if a certificate or network configuration changed in some way. I am able to create new accounts, so I don’t think it’s a problem with Redis.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

jimbojwcommented, Aug 9, 2022

Thanks! That seems to have fixed it. The test invoices I created from Blue Wallet disappeared after restart, but I am now again able to create invoices.

dennisreimanncommented, Aug 9, 2022

Can you try This will allow LND and LNDhub to pick up the changes tls.cert, which maybe didn’t happen. Depends on how you renewed it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I am unable to add 'pay now' to invoices. There is no payment ...
If your customers are unable to see the Pay now option, that means the online payments for the invoices isn't available for your...
Read more >
Unable to pay invoice and unable to create support request ...
Unable to pay invoice and unable to create support request, any solution Microsoft? So I have 2 unpaid invoices in Azure portal.
Read more >
Fix payment and billing issues - Google Workspace Admin Help
Common reasons payments can fail. If we try to charge your billing account for an automatic payment and our charge is declined, or...
Read more >
Square Invoices Troubleshooting | Square Support Center - US
To ensure a safe and secure processing environment, Square can occasionally cancel an invoice if there are too many failed attempts to pay...
Read more >
Cannot Add Invoice To Existing Payment Process Request ...
Oracle Payables - Version 12.1.2 and later: Cannot Add Invoice To Existing ... in view object SelectedPsVO1 Failed" (Doc ID 1241224.1).
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 Post

No results found

github_iconTop Related Hashnode Post

No results found