Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

local bitcoind provider, getting error "No wallet is loaded." #389

Closed
krupan opened this issue Mar 24, 2024 · 0 comments
Closed

local bitcoind provider, getting error "No wallet is loaded." #389

krupan opened this issue Mar 24, 2024 · 0 comments

Comments

@krupan
Copy link

krupan commented Mar 24, 2024

  1. Using BitcoinLib 0.6.14

  2. Added a provider for my bitcoind instance in providers.json:

  "bitcoind": {
    "provider": "bitcoind",
    "network": "bitcoin",
    "client_class": "BitcoindClient",
    "provider_coin_id": "",
    "url": "http://bitcoinrpc:<password>@localhost:8332",
    "api_key": "",
    "priority": 11,
    "denominator": 100000000,
    "network_overrides": null
  },
  1. Added rpcuser and rpcpassword to my bitcoin.conf file.

  2. Added =debug=rpc= to my bitcoin.conf file.

  3. Restarted bitcoind

Using clw and running this command:

clw <wallet name> --update-transactions

I can see the rpc queries in the bitcoind log debug.log file. However, when it gets to this query:

#+begin_example
2024-03-22T06:04:45Z [rpc] ThreadRPCServer method=getaddressinfo user=bitcoinrpc
#+end_example

It fails in bitcoinlib with this message (which I can only see if I add a breakpoint() to services.py on line 193, like so:

                _logger.debug("Executed method %s from provider %s" % (method, sp))
                self.resultcount += 1
            except Exception as e:
###  added breakpoint here ###
                breakpoint()

                if not isinstance(e, AttributeError):
                    try:
                        err = e.msg
                    except AttributeError:
                        err = e
                    self.errors.update(
                        {sp: err}
                    )

and step through the code, otherwise the error message gets swallowed.

#+begin_example
bitcoinlib.services.authproxy.JSONRPCException: -18: No wallet is loaded. Load a wallet using loadwallet or create a new one with createwallet. (Note: A default wallet is no longer automatically created)
#+end_example

@1200wd 1200wd locked and limited conversation to collaborators Mar 24, 2024
@mccwdev mccwdev converted this issue into discussion #391 Mar 24, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant