Closed microlancer closed 9 months ago
Here is some more added context. The line where it's crashing is this missing value.
chan_in_alias
or chan_out_alias
are sometimes blank
From what I can tell, they are blank when the channel was closed and no longer exists and LND can't look up the name anymore.
If anyone is having issues, it's a pretty easy fix, just update these two lines in gui/templates/base.html
:
"chan_in_alias": f => ({innerHTML: f.chan_in_alias != null ? f.chan_in_alias.default(f.chan_id_in) : ''}),
"chan_out_alias": f => ({innerHTML: f.chan_out_alias != null ? f.chan_out_alias.default(f.chan_id_out) : ''}),
And the page should load forwards again.
Also, a good thing to keep in mind is that the forwards are loaded slowly from LND over time and many background job requests, so they might start off showing only very old forwards.
A good UI improvement would be to have some indicator that the data loading is still in progress.
Please try the fix that was deployed in the v1.8.0 branch.
"chan_in_alias": f => ({innerHTML: f.chan_in_alias || f.chan_id_in}),
"chan_out_alias": f => ({innerHTML: f.chan_out_alias || f.chan_id_out}),
Please try the fix that was deployed in the v1.8.0 branch.
"chan_in_alias": f => ({innerHTML: f.chan_in_alias || f.chan_id_in}),
"chan_out_alias": f => ({innerHTML: f.chan_out_alias || f.chan_id_out}),
It works for me!
My /forwards page is blank.
I inspected the page with Chrome Dev Tools and saw:
In the network tab, I see the fetch http://localhost:8889/api/forwards/?limit=50&format=json and it is returning a successful list of JSON containing all the forwards.
So the data is there, but the JS is failing and so the page is blank.
Any ideas?