Closed tonyaldon closed 1 year ago
@tonyaldon Thank you so much for testing the plugin. Much appreciated.
This issue was actually a side effect of some other bug related to my notifications/stream testing. The merged the working code in the master now. It should not be happening anymore.
Closing the issue now but please feel free to comment if you still see the same behaviour.
Hi Shahana,
I tried clnrest and when I was trying to start it with the option
rest_protocol=http
, the server didn't want to run athttp://127.0.0.1:3010
. Here is the log:This is because when we stop the plugin, the server is not stopped and so the port 3010 is still used.
You can check this by running the following (assuming we have
lightning
andclnrest
repository cloned locally in the current directory):Maybe the server should be stopped when we stop the plugin. What do you think?
If you think it is a reasonable idea, this can be done by subscribing to the
shutdown
notification adding something like this toclnrest.py
: