monero-ts icon indicating copy to clipboard operation
monero-ts copied to clipboard

E !boost::string_ref{sig_str}.starts_with(header_v1) && !boost::string_ref{sig_str}.starts_with(header_v2)

Open tgbv opened this issue 3 years ago • 1 comments

I'm using the latest monero version ('Oxygen Orion' v0.17.2.0-release). The following code throws the error message in monero-wallet-rpc:

let wallet = await monerojs.connectToWalletRpc("http://127.0.0.1:8885", "admin", "admin");

await wallet.addListener(new class extends monerojs.MoneroWalletListener {
  onOutputReceived(output) {
    console.log(output) // result is ok
  }
});

E !boost::string_ref{sig_str}.starts_with(header_v1) && !boost::string_ref{sig_str}.starts_with(header_v2). THROW EXCEPTION: error::wallet_internal_error

Is there a way to suppress/fix it to avoid logging spam?

tgbv avatar Jun 19 '21 12:06 tgbv

This issue is caused by monero-javascript using check_reserve_proof within isConnected() to determine if monero-wallet-rpc is connected to monero-daemon-rpc.

We need an alternative way to determine if monero-wallet-rpc is connected to monero-daemon-rpc to resolve this warning in monero-wallet-rpc's console.

woodser avatar Jun 19 '21 13:06 woodser