Comments (6)
Try the following:
poetry run ./suez --client-args=--rpcserver=mydomain:10009 --client-args=--macaroonpath=~/.lnd/mynode/admin.macaroon --client-args=--tlscertpath=~/.lnd/mynode/tls.cert
from suez.
Can you post the exact error you see?
from suez.
% poetry run ./suez
[lncli] rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:10009: connect: connection refused"
Traceback (most recent call last):
File "/Users/user/gits/suez/./suez", line 5, in <module>
suez()
File "/Users/user/Library/Caches/pypoetry/virtualenvs/suez-WAvlm9Lk-py3.9/lib/python3.9/site-packages/click/core.py", line 1137, in __call__
return self.main(*args, **kwargs)
File "/Users/user/Library/Caches/pypoetry/virtualenvs/suez-WAvlm9Lk-py3.9/lib/python3.9/site-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/Users/user/Library/Caches/pypoetry/virtualenvs/suez-WAvlm9Lk-py3.9/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/user/Library/Caches/pypoetry/virtualenvs/suez-WAvlm9Lk-py3.9/lib/python3.9/site-packages/click/core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "/Users/user/gits/suez/suez.py", line 54, in suez
ln = clients[client](client_args)
File "/Users/user/gits/suez/lndclient.py", line 10, in __init__
self.refresh()
File "/Users/user/gits/suez/lndclient.py", line 13, in refresh
gi = self._run("getinfo")
File "/Users/user/gits/suez/lndclient.py", line 114, in _run
return json.loads(j.stdout)
File "/Users/user/.pyenv/versions/3.9.1/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/Users/user/.pyenv/versions/3.9.1/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/user/.pyenv/versions/3.9.1/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
so you can see that lncli is trying to get the local instance of lnd
from suez.
Use --client-args
to pass arguments to lncli
. Read lncli
documentation to learn which arguments you need to pass.
from suez.
Yup that's what I tried first, but it gave me so many problems I figured it could read the info from the lnd config file.
I access my remote node from lncli
with no problems. I figured I could pass the same arguments to suez but no luck.
How would I input multiple rpc arguments?
poetry run ./suez --client-args='--rpcserver=mydomain:10009 --macaroonpath=~/.lnd/mynode/admin.macaroon --tlscertpath=~/.lnd/mynode/tls.cert'
[lncli] rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing address tcp/10009 --macaroonpath=~/.lnd/mynode/admin.macaroon --tlscertpath=~/.lnd/mynode/tls.cert: unknown port"
Traceback (most recent call last):
File "/Users/user/gits/suez/./suez", line 5, in <module>
suez()
File "/Users/user/Library/Caches/pypoetry/virtualenvs/suez-WAvlm9Lk-py3.9/lib/python3.9/site-packages/click/core.py", line 1137, in __call__
return self.main(*args, **kwargs)
File "/Users/user/Library/Cahes/pypoetry/virtualenvs/suez-WAvlm9Lk-py3.9/lib/python3.9/site-packages/click/core.py", line 1062, in main
rv = self.invoke(ctx)
File "/Users/user/Library/Caches/pypoetry/virtualenvs/suez-WAvlm9Lk-py3.9/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/user/Library/Caches/pypoetry/virtualenvs/suez-WAvlm9Lk-py3.9/lib/python3.9/site-packages/click/core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "/Users/user/gits/suez/suez.py", line 54, in suez
ln = clients[client](client_args)
File "/Users/user/gits/suez/lndclient.py", line 10, in __init__
self.refresh()
File "/Users/user/gits/suez/lndclient.py", line 13, in refresh
gi = self._run("getinfo")
File "/Users/user/gits/suez/lndclient.py", line 114, in _run
return json.loads(j.stdout)
File "/Users/user/.pyenv/versions/3.9.1/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/Users/user/.pyenv/versions/3.9.1/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/user/.pyenv/versions/3.9.1/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)c
from suez.
Thanks!
from suez.
Related Issues (20)
- ModuleNotFoundError: No module named 'dataclasses' HOT 8
- edge not foud HOT 2
- ZeroDivisionError when running without channels HOT 1
- TypeError: unsupported format string passed to NoneType.__format__ HOT 2
- ZeroDivisionError while node syncing HOT 3
- Latest c-lightning no longer has last_tx_fee, but does have last_tx_fee_msat
- Confirming: is it dangerous to interrupt the script (e.g., via CTRL+C)? HOT 2
- Remote Node / Umbrel HOT 3
- Display in Min & Max HTLCs HOT 4
- Use RPC instead of lncli HOT 3
- No module named 'virtualenv.seed.via_app_data' HOT 4
- Parallel channels for Core Ligthning are not displayed HOT 2
- Version for Terminal Web Scores HOT 1
- Terminal Web v3 HOT 1
- Inaccurate local fees calculation HOT 2
- Add arguments to show only public or only private channels HOT 6
- corelightning + suez HOT 18
- CLN - Command "setchannelfee" is deprecated HOT 3
- Add lightning-network as a topic to this repository HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from suez.