Ride-The-Lightning / c-lightning-REST

REST APIs for Core Lightning written with node.js
MIT License
120 stars 43 forks source link

Authentication Failed! Bad Macaroon! #174

Closed hdlslm closed 1 year ago

hdlslm commented 1 year ago

when trying to login to rtl home page , i am getting the following authentication / bad macaroon error messege per log files any idea what to do?

[2023-05-19T17:26:45.934Z] ERROR: GetInfo => Get Info Error: {"name":"StatusCodeError","statusCode":401,"message":"401 - {\"message\":\"Authentication Failed!\",\"error\":\"Bad Macaroon!\"}","error":{"message":"Authentication Failed!",>

ShahanaFarooqui commented 1 year ago

Assuming that you have configured macaroonPath to c-lightning-REST/certs in RTL-Config, it seems like your certificates have been corrupted for some reason.

Deleting contents of the c-lightning-REST/certs folder and restarting c-lightning-REST server should fix the issue.

If the macaroonPath is configured for some other location then replace these newly generated certs in that location.

hdlslm commented 1 year ago

thank you that seemed to help but once l logged in, i was getting some type of server error and the url was weird . i'm guessing bc i had rtl configured for lnd initially so i completely removed lnd and rtl and will reinstall to configure for cln. thanks again