Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC error on invoice creation #19

Closed
Filiprogrammer opened this issue Dec 31, 2023 · 1 comment
Closed

RPC error on invoice creation #19

Filiprogrammer opened this issue Dec 31, 2023 · 1 comment

Comments

@Filiprogrammer
Copy link
Contributor

The following RPC error occurs when trying to create an invoice:

2023-12-31 00:13:54.242 [INF] LNADDR: Handling invoice creation: {GET /invoice/?amount=10000&nonce=179879833238 HTTP/1.1 1 1 map[Accept:[/] User-Agent:[curl/7.88.1]] {} 0 [] false 127.0.0.1:8081 map[] map[] map[] 127.0.0.1:43232 /invoice/?amount=10000&nonce=179879833238 0xc0002733c0}

2023-12-31 00:13:54.242 [INF] LNADDR: Cannot create invoice: rpc error: code = Unavailable desc = connection error: desc = "error reading server preface: http2: frame too large"

This issue is present since commit 01b5d1a

Tested with lnd v0.16.0-beta

@Filiprogrammer
Copy link
Contributor Author

Problem solved. I had "RPCHost" set to "localhost:8080" in the config.json. So I was still trying to access the REST API on port 8080 even though the new version of go-host-lnaddr uses gRPC which runs on port 10009. The solution was to change the "RPCHost" to "localhost:10009".

I also noticed that the "RPCHost" value in the config.json example file is incorrectly set to "localhost:9735". This should be changed to "localhost:10009".

-        "RPCHost": "localhost:9735",
+        "RPCHost": "localhost:10009",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant