[bug]: rpc error: code = Unknown desc = expected 1 macaroon, got 0 #7370
Unanswered
lenhatquang97
asked this question in
Troubleshooting
Replies: 1 comment 5 replies
-
Hi @lenhatquang97 , The first thing that jumps out to me when looking at your connection code is this:
From this, it looks like you are using the path to your macaroon file as the actual macaroon text instead of first reading in the content of the macaroon file. For a simple example of how to read from a macaroon file and include that in your call, see how it is done here |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
I want to use LND API from Golang for setup like in this tutorial: https://medium.com/hackernoon/learning-bitcoins-lightning-network-with-go-set-up-deea944b920e
However it shows an error for no macaroon.
Your environment
lnd
lnd: 0.15.99-beta commit=cert/v1.2.0-6-g22fec7633
OS: Ubuntu 22.04.1 LTS
Btcd version: 0.23.3-beta
Steps to reproduce
Tell us how to reproduce this issue. Please provide stacktraces and links to code in question.
Expected behaviour
This code shows wallet balance.
Actual behaviour
rpc error: code = Unknown desc = expected 1 macaroon, got 0
Beta Was this translation helpful? Give feedback.
All reactions