Coder Social home page Coder Social logo

connecting to remote node? about suez HOT 6 CLOSED

prusnak avatar prusnak commented on July 18, 2024
connecting to remote node?

from suez.

Comments (6)

prusnak avatar prusnak commented on July 18, 2024 1

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.

prusnak avatar prusnak commented on July 18, 2024

Can you post the exact error you see?

from suez.

keblek avatar keblek commented on July 18, 2024
 % 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.

prusnak avatar prusnak commented on July 18, 2024

Use --client-args to pass arguments to lncli. Read lncli documentation to learn which arguments you need to pass.

from suez.

keblek avatar keblek commented on July 18, 2024

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.

keblek avatar keblek commented on July 18, 2024

Thanks!

from suez.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.