I am trying to access my lightning node, part of a BTCPayServer instance via REST api but not getting any response from it. I am running this type of python script on the VPS
https://api.lightning.community/?python#v1-channels
with corresponding location for tls.cert and admin.macaroon but getting this error
ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /v1/channels (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f1f7b1c8a00>: Failed to establish a new connection: [Errno 111] Connection refused'))
I was expecting a json with channels on the node.