You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my network, I have a node running "Terminal v0.14.1-alpha."
I'm attempting to use the API to, for example, call DecodeAssetPayReq.
I am using the sample code exactly as provided in the documentation. However, I am receiving the following response:
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/icons/favicon-32x32.png"/><meta name="theme-color" content="#000000"/>....<link rel="manifest" href="/manifest.json"/><title>Lightning Terminal</title><script defer="defer" src="/static/js/main.f878aaa8.js"></script><link href="/static/css/main.488ab95f.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
I suspect this is happening because the Web UI is on the same endpoint as the REST backend (in my case, 127.0.0.1:8443).
How can I resolve this conflict?
The text was updated successfully, but these errors were encountered:
So the REST API (e.g. for taproot-assets) is served on port 8080 inside the container.
What I didn’t realize initially is that Polar maps this internal port to a different external one on the host machine. In my case, it’s mapped like this (which I found in docker desktop):
8381 (host) → 8080 (container)
I was sending requests to localhost:8443, which is actually the Lightning Terminal Web UI, not the REST API. That explains the HTML response I was getting. Once I changed my API requests to go to localhost:8381 instead, it worked as expected — including the DecodeAssetPayReq call.
So just a heads up for anyone else running into the same issue: make sure you’re targeting the correct mapped port for the REST API, not the Web UI.
@jamaljsr Can you confirm this? Is there a small bug in the docs under the 'Connect' section for the Node with REST Host, where the listed port doesn't match the actual exposed port?
In my network, I have a node running "Terminal v0.14.1-alpha."
I'm attempting to use the API to, for example, call DecodeAssetPayReq.
I am using the sample code exactly as provided in the documentation. However, I am receiving the following response:
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/icons/favicon-32x32.png"/><meta name="theme-color" content="#000000"/>....<link rel="manifest" href="/manifest.json"/><title>Lightning Terminal</title><script defer="defer" src="/static/js/main.f878aaa8.js"></script><link href="/static/css/main.488ab95f.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
I suspect this is happening because the Web UI is on the same endpoint as the REST backend (in my case,
127.0.0.1:8443
).How can I resolve this conflict?
The text was updated successfully, but these errors were encountered: