-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Endless checking of an unpaid invoice (processor LNBits) #333
Comments
And few other log pieces - there is "Unable to update invoice from payment processor." too..
|
I think this is not full fixed may be this bug: #193 Because this error happens for pending invoices... |
After 3 weeks right now I see same errors for the same invoice |
@Perlover I will look into reproducing this issue. |
@Perlover in the meantime, try removing the invoice from your |
What is way to remove the invoice? SQL commands in the nostream SQL database? |
You can check first that the invoice exists with: docker compose exec nostream-db psql -U nostr_ts_relay -c "select * from invoices where id = '523a9e10e1a318b0a8e049a88b87e911afae5792b1b4f400805e660dd9366f1a';" And then delete it with: docker compose exec nostream-db psql -U nostr_ts_relay -c "delete from invoices where id = '523a9e10e1a318b0a8e049a88b87e911afae5792b1b4f400805e660dd9366f1a';" |
@Perlover let me know if you were able to solve the issue |
Sorry for delay. I will do it on Monday. |
Thanks, it seems to have been successfully deleted. But judging by the logs - this invoice is not the only one, but there are others. I'll delete them :) P.S. This invoice has been checked in the logs to this day..... |
And, without private data some info about the
For example right now in my logs:
|
Describe the bug
Every minute, several times a second, LNBits is contacted to check the status of the LN invoice (my nostream is paid relay), which was canceled 6 days ago. LNBits returns a 404 error, since this hash of the invoice no longer exists for him. But norstream keeps checking the bill again and again every minute. A restart of nostream doesn't help.
To Reproduce
I do not know, I know that on that day I just deployed the nostream server. Perhaps this is due to the fact that at the beginning I mistakenly indicated in settings.yml:
I forgot to adjust the second parameter. Having paid 199 sats for a user, I thought that his account would work. But it turned out that the minimum was 1000 sats. Then I paid for him 5 more times and his account started working. Later, I changed the second parameter to 199 sats. I don't know if it caused this error or not, but it's the only thing that comes to my mind.
Expected behavior
I think that if the payment verification already shows a HTTP 404 error from LNBits - this should stop. Or stop at least for the reason that the account has expired a long time ago (it had an expiration date of 10 minutes)
Screenshots
To see logs below
System (please complete the following information):
d1d4cb9e2512e44812f539a5da61db0e97cec266
(v1.25.2
+ 3 commits)Logs
Additional context
LND side - invoice data:
Here:
The text was updated successfully, but these errors were encountered: