Skip to content

[4.6.0] AttributeError('str' object has no attribute 'get_addresses') #10097

@harryqt

Description

@harryqt

Description

After upgrading to v4.6.0 RPC calls broken

/path/to/electrum stop
/path/to/electrum daemon -d
/path/to/electrum load_wallet -w /home/harry/.electrum/wallets/wallet_1
{
  "id": "curltext",
  "method": "listaddresses",
  "params": {
    "wallet": "/home/harry/.electrum/wallets/wallet_1",
    "receiving": true,
    "unused": true
  }
}

response:

{
  "id": "curltext",
  "jsonrpc": "2.0",
  "error": {
    "code": 2,
    "message": "internal error while executing RPC",
    "data": {
      "exception": "AttributeError(\"'str' object has no attribute 'get_addresses'\")",
      "traceback": "Traceback (most recent call last):\n  File \"/home/harry/cliapps/electrum/lib/python3.11/site-packages/electrum/daemon.py\", line 266, in handle\n    response['result'] = await f(**params)\n                         ^^^^^^^^^^^^^^^^^\n  File \"/home/harry/cliapps/electrum/lib/python3.11/site-packages/electrum/commands.py\", line 194, in func_wrapper\n    return await func(*args, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/harry/cliapps/electrum/lib/python3.11/site-packages/electrum/commands.py\", line 1164, in listaddresses\n    for addr in wallet.get_addresses():\n                ^^^^^^^^^^^^^^^^^^^^\nAttributeError: 'str' object has no attribute 'get_addresses'\n"
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions