fusion44 / blitz_api

A management backend for the RaspiBlitz project written in Python / FastAPI
MIT License
19 stars 18 forks source link

#94 pubkey info on lightning lite info #108

Closed rootzoll closed 2 years ago

rootzoll commented 2 years ago

Fixes #94 Worked for lnd but was not able to test with cl because I get on error before I can can parse the info further.

Jun 06 21:39:18 python[110174]:   File "./app/repositories/ln_impl/cln_grpc.py", line 477, in get_ln_info_impl
Jun 06 21:39:18 python[110174]:     res = await lncfg.cln_stub.Getinfo(req)
Jun 06 21:39:18 python[110174]:   File "/usr/local/lib/python3.9/dist-packages/grpc/aio/_call.py", line 290, in __await__
Jun 06 21:39:18 python[110174]:     raise _create_rpc_error(self._cython_call._initial_metadata,
Jun 06 21:39:18 python[110174]: grpc.aio._call.AioRpcError: <AioRpcError of RPC that terminated with:
Jun 06 21:39:18 python[110174]:         status = StatusCode.UNAVAILABLE
Jun 06 21:39:18 python[110174]:         details = "failed to connect to all addresses"
Jun 06 21:39:18 python[110174]:         debug_error_string = "{"created":"@1654547958.117541682","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3093,"referenced_errors":[{"created":"@1654547958.117538015","description":"failed to connect to all addresses","file":"src/core/lib/transport/error_utils.cc","file_line":163,"grpc_status":14}]}"
Jun 06 21:39:18 python[110174]: >
Jun 06 21:39:18 python[110174]: ERROR:    Application startup failed. Exiting.
rootzoll commented 2 years ago

@fusion44 can I merge the PR?

fusion44 commented 2 years ago

Yes, merge it. The CLN error above just says that the CLN node could not be reached or that a certificate is wrong.