pull down to refresh
I get the following error:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /v1/invoice</pre>
</body>
</html>๐คจ
Something seems to be wrong with your node. Looks like CLNRest is not running? I am not familiar with Umbrel unfortunately. Looking at the Umbrel docker-compose config for CLN, I wonder why they run CLNRest separately. Maybe that's related?
Since v23.08, it's built-in so they should add --clnrest-port during start to enable it which they don't.
It is maybe using a different port?
Does make sense to edit the docker-compose.yml file and add under command: for example:
--clnrest-port=${APP_CORE_LIGHTNING_DAEMON_IP}: 2104You can for sure try. But try this:
--clnrest-port=2104or use 3010 as the port since according to the docs, that's common
can't really find the same file inside the node ๐ค
Oh, sorry that I left you hanging, I forgot to reply.
Which file? The docker-compose file? Does Umbrel not have a way to pass startup arguments to CLN?
Sorry that I can't help you here further. As far as I can tell, there seems to be something wrong with your node (or reverse proxy if you are running one). I think you should reach out to Umbrel for support. Maybe they have a Telegram group?
No worries, all good I still figuring it out!
yes is the docker-compose.yml that supposed to be under umbrel-apps/core-lightning/ but can't locate it in that folder.
I'll definitely reach out to to the umbrel team and provide an update here. Thanks for your help til here, much appreciated ๐ช๐ค
maybe worth to mention I'm using umbrel
Your rune seems to be fine. We only try to connect when we verified that your rune is properly limited to
method=invoice. We then use this rune with theRuneheader as mentioned here and as you can see here. We don't do anything else to it.The error
invalid json response body at http://hidden.onion:2104/v1/invoice reason: Unexpected token < in JSON at position 0means that we connected to your node successfully but it didn't return JSON as expected.Do you get a valid JSON response when you do a request from the same machine with
cURL? Try this:$ curl -X POST http://localhost:2104/v1/invoice -H "Rune: <your_rune_here>"