Skip to content

ERROR bwt » JSON error: invalid type: sequence, expected a string #6

Description

@drew1kun

Hi, I am asking for help to understand what am I doing wrong here.

I have been trying to set up my Electrum Wallet on OSX to connect to my Bitcoin Core Full Node via both Bwt server(docker) and BWT-electrum-plugin without success. Both bwt-electrum-plugin and BWT docker return the same message... They seem to be able to connect to bitcoin node via RPC but reporting the same error from BWT:

DEBUG bwt » Config { network: Bitcoin, verbose: 1, timestamp: false, bitcoind_wallet: Some("tangem_cold"), bitcoind_dir: Some(""), bitcoind_url: Some("http://bitcoin.domain.local:8332"), bitcoind_auth: Some("**SCRUBBED**"), bitcoind_cookie: None, create_wallet_if_missing: true, descriptors: [], xpubs: [xpub<XXXXXXX>], addresses: [], addresses_file: None, rescan_since: Timestamp(1735603200), force_rescan: false, gap_limit: 20, initial_import_size: 350, wait_sync: true, prune_until: None, auth_cookie: None, auth_token: None, auth_ephemeral: false, print_token: false, electrum_addr: Some(127.0.0.1:51315), electrum_skip_merkle: true, electrum_socks_auth: false, poll_interval: 5s, broadcast_cmd: None, startup_banner: false, unix_listener_path: Some("/Applications/Electrum.app/Contents/MacOS/electrum/plugins/bwt/bwt-socket"), require_addresses: true, setup_logger: true }

WARN bwt::progress » getblockchaininfo failed: Json(Error("invalid type: sequence, expected a string", line: 0, column: 0))
WARN bwt::progress » getblockchaininfo failed: Json(Error("invalid type: sequence, expected a string", line: 0, column: 0))
WARN bwt::progress » getblockchaininfo failed: Json(Error("invalid type: sequence, expected a string", line: 0, column: 0))
ERROR bwt » JSON error: invalid type: sequence, expected a string

It seems like my Bitcoin Core node returns the unexpected Json response over RPC... Which makes me think that my Bitcoin Core node might be misconfigured... But, when I connect the Sparrow Wallet directly to my Bitcoin full node (without using any intermediary electrum-like server etc..), all works as expected.

Anyway, my bitcoin.conf:

bind=127.0.0.1
blockfilterindex=1
datadir=/Volumes/Bitcoin/BitcoinCore/Bitcoin
debug=0
logips=1
maxconnections=40
par=0
prune=0

rpcallowip=127.0.0.1
# Allow RPC from LAN and VPN:
rpcallowip=192.168.20.20/32
rpcallowip=10.0.9.10/32
rpcallowip=10.0.9.11/32

rpcbind=127.0.0.1
rpcbind=192.168.20.10

rpcpassword=<RPC_PASS>
rpcservertimeout=30
rpcuser=<RPC_USER>
rpcworkqueue=128
server=1
txindex=1
peerbloomfilters=1
mempoolfullrbf=1
listenonion=1
onlynet=onion
proxy=127.0.0.1:9050
torcontrol=127.0.0.1:9051
torpassword=<TOR_CONTROL_PASSWORD>
walletdescriptor=1
zmqpubrawblock=tcp://127.0.0.1:28332
zmqpubrawtx=tcp://127.0.0.1:28333

Please help me to understand what is wrong with my BWT/Bitcoin Core setup. Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions