Skip to content
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

RTL channels and rate "Unknown Error" #1291

Closed
Globalebill opened this issue Sep 27, 2023 · 5 comments · Fixed by #1292
Closed

RTL channels and rate "Unknown Error" #1291

Globalebill opened this issue Sep 27, 2023 · 5 comments · Fixed by #1292

Comments

@Globalebill
Copy link

Globalebill commented Sep 27, 2023

@saubyk @ShahanaFarooqui @NicolasDorier

After upgrading to BTCPay1.11.6 for the resolution of bug Ride-The-Lightning/c-lightning-REST#199 the RTL front end is now giving errors on the Dashboard, Peers/Channels (peers list loads ok) and Rates pages as per the screen captures below, note: all other pages load with no errors

rtl channels

rtl dashboard

rtl rates

@ShahanaFarooqui ShahanaFarooqui self-assigned this Sep 27, 2023
@ShahanaFarooqui
Copy link
Collaborator

ShahanaFarooqui commented Sep 27, 2023

@Globalebill Can you share logs from c-lightning-REST and RTL? And data or error from Browser console (right click on browser -> Click on Inspect -> Go to Network tab -> listpeerschannels Response tab)

Screenshot from 2023-09-27 12-10-55

@Globalebill
Copy link
Author

Globalebill commented Sep 27, 2023

@ShahanaFarooqui

List Channels response: {"message":"List Channels Error","error":"Unknown Error"}

list channels

RTL logs, docker logs generated_bitcoin_rtl_1, prior to upgrade and after:

[9/27/2023, 6:33:00 PM] ERROR: CLWebSocket => Web socket error: getaddrinfo ENOTFOUND clightning_bitcoin_rest

[9/27/2023, 6:34:12 PM] ERROR: Channels => List Channels Error: {}

[9/27/2023, 6:34:49 PM] ERROR: Channels => List Channels Error: {}

[9/27/2023, 6:35:37 PM] ERROR: Channels => List Channels Error: {}

[9/27/2023, 6:36:14 PM] ERROR: Channels => List Channels Error: {}

[9/27/2023, 7:14:00 PM] ERROR: Channels => List Channels Error: {}

[9/27/2023, 7:14:18 PM] ERROR: Channels => List Channels Error: {}

docker logs generated_clightning_bitcoin_rest_1
Waiting /root/.nbxplorer/btc_fully_synched to be created...
The chain is fully synched
Reading config file
warn: --- Starting the cl-rest server ---
warn: --- cl-rest api server is ready and listening on 0.0.0.0:3001 ---
warn: --- cl-rest doc server is ready and listening on 0.0.0.0:4001 ---
warn: Client disconnected, total clients: 0

@ShahanaFarooqui
Copy link
Collaborator

ShahanaFarooqui commented Sep 27, 2023

listChannels endpoint is deprecated after CLN 23.02. RTL should call listPeerChannels instead.

As per you last issue, you are on:
saubyk/c-lightning-rest:0.10.6
btcpayserver/lightning:v23.08
shahanafarooqui/rtl:0.14.0

But can you please confirm it in the UI also, like below:

Screenshot from 2023-09-27 12-29-36

@Globalebill
Copy link
Author

versions:
shahanafarooqui/rtl:0.14.0
btcpayserver/bitcoin:25.0
saubyk/c-lightning-rest:0.10.6
btcpayserver/lightning:v23.08

btcpay 1.11.6 upgraded from 1.11.5

rtl version

@ShahanaFarooqui
Copy link
Collaborator

@Globalebill Thank you for raising the issue. It occurred due to Core lightning's version prefix (basedon) which has been prefixed by BTCPayServer. RTL expected the version to be starting with v only. Updated the regex to filter all prefix and postfix.

The fix will be released with v0.14.1 (hopefully this weekend). Closing the issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants