question-mark
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.

Pays invoice but doesn't stop "checking pending transactions"

See original GitHub issue

Hi,

This capture is taken after pressing the “Send Satoshis” button: chrome_hKekWERBL2

"This problem with payments by myNode’s LNbits instance continues. It pays, the payment has been received, but the page will stay in this state until the popup is cancelled and will continually poll the myNode LNbits server whenever the page is active.

What could be preventing the recognition/acknowledgement that the payment has succeeded?"

https://t.me/lnbits/4123

Attached is lnbitsError.log a log of lnbits activity on myNodeBTC ( @tehelsper) including an error message I hadn’t found before:

Aug  1 08:34:47 myNode lnbits[4233]: [2020-08-01 08:34:47,210] ERROR in app: Exception on /api/v1/payments [GET]
Aug  1 08:34:47 myNode lnbits[4233]: Traceback (most recent call last):
Aug  1 08:34:47 myNode lnbits[4233]:   File "/home/bitcoin/.local/share/virtualenvs/lnbits-ib5ZU12v/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
Aug  1 08:34:47 myNode lnbits[4233]:     response = self.full_dispatch_request()
Aug  1 08:34:47 myNode lnbits[4233]:   File "/home/bitcoin/.local/share/virtualenvs/lnbits-ib5ZU12v/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
Aug  1 08:34:47 myNode lnbits[4233]:     rv = self.handle_user_exception(e)
Aug  1 08:34:47 myNode lnbits[4233]:   File "/home/bitcoin/.local/share/virtualenvs/lnbits-ib5ZU12v/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
Aug  1 08:34:47 myNode lnbits[4233]:     reraise(exc_type, exc_value, tb)
Aug  1 08:34:47 myNode lnbits[4233]:   File "/home/bitcoin/.local/share/virtualenvs/lnbits-ib5ZU12v/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
Aug  1 08:34:47 myNode lnbits[4233]:     raise value
Aug  1 08:34:47 myNode lnbits[4233]:   File "/home/bitcoin/.local/share/virtualenvs/lnbits-ib5ZU12v/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
Aug  1 08:34:47 myNode lnbits[4233]:     rv = self.dispatch_request()
Aug  1 08:34:47 myNode lnbits[4233]:   File "/home/bitcoin/.local/share/virtualenvs/lnbits-ib5ZU12v/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
Aug  1 08:34:47 myNode lnbits[4233]:     return self.view_functions[rule.endpoint](**req.view_args)
Aug  1 08:34:47 myNode lnbits[4233]:   File "/opt/mynode/lnbits/lnbits/decorators.py", line 24, in wrapped_view
Aug  1 08:34:47 myNode lnbits[4233]:     return view(**kwargs)
Aug  1 08:34:47 myNode lnbits[4233]:   File "/opt/mynode/lnbits/lnbits/core/views/api.py", line 19, in api_payments
Aug  1 08:34:47 myNode lnbits[4233]:     payment.set_pending(WALLET.get_payment_status(payment.checking_id).pending)
Aug  1 08:34:47 myNode lnbits[4233]:   File "/opt/mynode/lnbits/lnbits/wallets/lndrest.py", line 86, in get_payment_status
Aug  1 08:34:47 myNode lnbits[4233]:     return PaymentStatus(statuses[payment["status"]])
Aug  1 08:34:47 myNode lnbits[4233]: TypeError: 'NoneType' object is not subscriptable

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
arcbtccommented, Jul 31, 2020

Oooo, I bet this is the new LND rest changes they made. I’ll look into it

0reactions
fiatjafcommented, Oct 13, 2020

Narrator: it wasn’t.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Canceling Pending Transaction: A Step-by-Step Guide
Pending transactions are temporary charges on your debit or credit account. Learn how they work and how to cancel them.
Read more >
How to Cancel a Pending Transaction
To cancel a pending transaction on your credit card or debit card, you'll need to follow a few steps and contact the merchant...
Read more >
Checking Accounts: Understanding Your Rights | OCC
Even without a cancelled check, you can prove you made a payment with your bank statement, which shows the date and amount of...
Read more >
How to follow up on past due invoices: Guide & payment ...
Here are some steps you can take if your client doesn't pay an outstanding invoice on time. How to follow up on past-due...
Read more >
Account Activity Questions
ATM withdrawals, Wells Fargo Online Bill Pay transactions, and pending debit card transactions that have been authorized, but not yet paid from your...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found