getAlby / lightning-browser-extension

The Bitcoin Lightning Browser Extension that brings deep Lightning & Nostr integration to the web. Wallet interface to multiple lightning nodes and key signer for Nostr, Liquid and onchain use.
https://getalby.com/#extension
MIT License
540 stars 194 forks source link

Failed payment when I created an invoice with my LND node through Alby #868

Open MoritzKa opened 2 years ago

MoritzKa commented 2 years ago

Describe the bug I want to receive 1 sat on my LND node. The LND node is connected with the Alby extension. I create an invoice with the extension for my LND node and pass it on to the Bitcoin Beach Wallet. After I confirmed the payment I get: "there was an error. Unable to find a route for payment" My node has one channel (with the Alby node) and enough inbound capacity. However, the invoice generated by my Zeus app (also connected to my LND node) also does not result in a successful payment from Bitcoin Beach wallet.

To Reproduce Steps to reproduce the behavior:

  1. Connect LND node with Alby
  2. Click on LND account in Alby and generate an invoice
  3. Pay that invoice from another account/app etc.
  4. See error "Unable to find a route for payment"

Expected behavior a successful payment

Information About Alby

Screenshots (If Any) Add screenshots to help explain your problem.

Device Information [optional]:

Additional context Problem reported by another user: https://feedback.getalby.com/bugs-errors--1/posts/payment-failed

Are you working on this issue? (Yes/No) No

GregorWedlich commented 2 years ago

The same problem for me and sometimes I become an Error "Faild to fetch".

With my Lnbits (same node) it works fine :)

image

bumi commented 2 years ago

@PrinzMonty did you get this today? what did you try to pay when you got this error?

GregorWedlich commented 2 years ago

Yes today! I test with very small amounts of Sats 20 - 50 Sats.

bumi commented 2 years ago

If it was towards an Alby lightning address or something hosted on getalby.com then we had some DDoS attack today which caused some problems. Right now everything looks stable again, our defense is holding up. :) Can you test it again, to see if your issue is related? https://twitter.com/getAlby/status/1523220562851508224

GregorWedlich commented 2 years ago

Nope. Same error ... I get the error for days, but most of the time it worked.

But my receipt problem with my LND node I have all the time.

Maybe its an setting problem on my site, but I don't understand why it works with LNbits on the same node?!

bumi commented 2 years ago

I think Alby currently does not include "private" route hints. Others maybe do this.

We should investigate how Zeus, Lnbits, etc. create invoices and if they include those by default. (or if this is a user option?)

relevant API: https://api.lightning.community/#addinvoice => private bool request parameter

MoritzKa commented 2 years ago

Feedback from a user Sep 29, 2022

When I connect my Raspiblitz via Tor or Local IP, I cannot receive any payments. The transaction always fails.

The funny thing is that I also run a BTCPayServer and Lnbits on the same node and when I include those I can receive payments without any problems :D

wksantiago commented 1 year ago

Getting same error when trying to send payment to Bitrefill

bumi commented 1 year ago

@wksantiago what is your exact error? and what account/node do you have connected?

wksantiago commented 1 year ago

When I try to paste and pay a Lightning invoice I get this:

"Error: Failed to fetch"

wksantiago commented 1 year ago

@bumi I have an account in the extension with a few sats not connected to a node

wksantiago commented 1 year ago

@bumi My bad I did have two more connected nodes and those had sats, but my hot wallet in the extension had 0 sats.

After removing the two nodes and just leaving the Alby wallet I then added some sats to it, and then it worked.