Unable to add or pay invoices
See original GitHub issueI’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
updateLightning()
updateLightning()
updateDescribeGraph()
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: https://github.com/BlueWallet/LndHub/blob/master/controllers/api.js#L185
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.
updateLightning()
<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"
updateLightning()
updateDescribeGraph()
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:
- Created a year ago
- Comments:8 (1 by maintainers)
Top GitHub Comments
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.
Can you try
btcpay-restart.sh
? This will allow LND and LNDhub to pick up the changestls.cert
, which maybe didn’t happen. Depends on how you renewed it.