Skip to content

lnd newaddress: try/catch in case of JSON error #733

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

Merged
merged 1 commit into from
Jul 30, 2025

Conversation

pinheadmz
Copy link
Contributor

Fix these ln_init errors that break out of the wait/retry loop:

  File "/shared/archive.pyz/ln_framework/ln.py", line 433, in newaddress
tank-0007-ln - ERROR: Error LND POST, Abort: [Errno 111] Connection refused
tank-0005-ln - ERROR: Error LND POST, Abort: [Errno 111] Connection refused
tank-0009-ln - ERROR: Error LND POST, Abort: [Errno 111] Connection refused
tank-0006-ln - ERROR: Error LND POST, Abort: [Errno 111] Connection refused
tank-0002-ln - ERROR: Error LND POST, Abort: [Errno 111] Connection refused
Exception in thread Thread-13 (get_ln_addr):
tank-0008-ln - ERROR: Error LND POST, Abort: [Errno 111] Connection refused
  File "/usr/local/lib/python3.12/json/__init__.py", line 339, in loads
Exception in thread Thread-17 (get_ln_addr):
tank-0003-ln - ERROR: Error LND POST, Abort: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
Exception in thread Thread-16 (get_ln_addr):
Traceback (most recent call last):
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
tank-0001-ln - ERROR: Error LND POST, Abort: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
Exception in thread Thread-18 (get_ln_addr):
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
Exception in thread Thread-14 (get_ln_addr):
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
tank-0004-ln - ERROR: Error LND POST, Abort: [Errno 111] Connection refused
Exception in thread Thread-12 (get_ln_addr):
TypeError: the JSON object must be str, bytes or bytearray, not NoneType
    self.run()
Exception in thread Thread-15 (get_ln_addr):
    self.run()
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
Exception in thread Thread-19 (get_ln_addr):
Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
    self.run()
  File "/usr/local/lib/python3.12/threading.py", line 1012, in run
  File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
    self.run()
  File "/usr/local/lib/python3.12/threading.py", line 1012, in run
  File "/usr/local/lib/python3.12/threading.py", line 1012, in run
  File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.12/threading.py", line 1012, in run

@bdp-DrahtBot
Copy link
Collaborator

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@pinheadmz pinheadmz merged commit 6d4aff6 into bitcoin-dev-project:main Jul 30, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants