akumaigorodski / wallet

Bitcoin wallet for Android
https://sbw.app
Apache License 2.0
240 stars 73 forks source link

LN payment stuck in "preparing" #152

Closed iljah closed 1 year ago

iljah commented 2 years ago

Tried several times to pay different bitrefill invoices with lightning but they never go past "preparing". Using 2.4.27, also tried restarting both wallet and phone without effect. Channel opened to bitrefill server. Sharing latest try gives debug info: local failure: not-retrying-no-details

fiatjaf commented 2 years ago

You only have one channel with Bitrefill, no other channels? This only happens with Bitrefill invoices, not with other invoices?

iljah commented 2 years ago

I had another channel with insufficient balance for paying above invoices. Both channels were to bitrefill but different nodes. Haven't tried with other invoices and can't test anymore as I closed both channels.

fiatjaf commented 2 years ago

I think you might have been trying to send the payment through an unresponsive channel, but I don't know. This could be better handled anyway. I believe the payment will stop after a while an give you a timed-out message though.

iljah commented 2 years ago

It timed out after about 30 mins which is what bitrefill seems to use. Manually removing the payment after couple of minutes didn't seem to work completely since trying to pay the same invoice again resulted in something like: value already in flight. But this was fixed by restarting wallet I think.

iljah commented 2 years ago

Note that I opened the channel with enough sendable balance just before trying to send through it. Perhaps the channel which didn't have enough balance was unresponsive but wallet was trying to negotiate with it first?..