RadarTech / lnrpc

A Typescript gRPC client for LND with support for all LND sub-servers
MIT License
43 stars 13 forks source link

Error: 12 UNIMPLEMENTED: unknown service lnrpc.WalletUnlocker when calling `unlockWallet` #34

Open mitchelljustin opened 5 years ago

mitchelljustin commented 5 years ago

Version: 0.6.0-beta.0 Arch: darwin Node: 11.10.1

  const lnRpc = await createLnRpc({
    server: "localhost:10009",
    tls: "./lnd_data/tls.cert",
    macaroonPath: "./lnd_data/data/chain/bitcoin/testnet/admin.macaroon",
  })
  await lnRpc.unlockWallet({
    walletPassword: "...",
  })
cavanmflynn commented 5 years ago

Hey @mvanderh, this seems to be working as designed against my node.

The WalletUnlocker service is not available after you unlock the wallet. Once it is unlocked, you'll only be able to interact with the Lightning service and any call to the WalletUnlocker service will result in Error: 12 UNIMPLEMENTED: unknown service lnrpc.WalletUnlocker.

Could you double check that your wallet is not already unlocked?

mitchelljustin commented 5 years ago

Ah i see, yes that was it. Is there any chance you could make the error message clearer? It's confusing for newcomers.

cavanmflynn commented 5 years ago

The UNIMPLEMENTED error messages come right from the gRPC service, rather than our client. That said, I understand they can be confusing. I'll take a look at adding more helpful error messages when a gRPC service is not up.