janoside / btc-rpc-explorer

Database-free, self-hosted Bitcoin explorer, via RPC to Bitcoin Core.
https://bitcoinexplorer.org
MIT License
1.5k stars 1.11k forks source link

Won't connect to electrum-personal-server-windows-release-v0.2.4 #458

Open pperrin opened 2 years ago

pperrin commented 2 years ago

I have the latest bitcoin-core and electrum personal server - (a local electrum wallet seems to connect fine) but starting explorer gives me this...

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

> btc-rpc-explorer@3.3.0 start
> node ./bin/www

  btcexp:app Searching for config files... +0ms
  btcexp:app Config file found at C:\Users\paul\.config\btc-rpc-explorer.env, loading... +2ms
  btcexp:app Config file not found at \etc\btc-rpc-explorer\.env, continuing... +3ms
  btcexp:app Config file found at C:\Users\paul\Repos\btc-rpc-explorer\.env, loading... +1ms
  btcexp:app Default cacheId '3.3.0' +2s
  btcexp:app Enabling view caching (performance will be improved but template edits will not be reflected) +38ms
  btcexp:app Environment(development) - Node: v16.15.1, Platform: win32, Versions: {"node":"16.15.1","v8":"9.4.146.24-node.21","uv":"1.43.0","zlib":"1.2.11","brotli":"1.0.9","ares":"1.18.1","modules":"93","nghttp2":"1.47.0","napi":"8","llhttp":"6.0.4","openssl":"1.1.1o+quic","cldr":"40.0","icu":"70.1","tz":"2021a3","unicode":"14.0","ngtcp2":"0.1.0-DEV","nghttp3":"0.1.0-DEV"} +9ms
  btcexp:app Using sourcecode metadata as cacheId: '2022-06-25-d96ded6e0d' +269ms
  btcexp:app Starting BTC RPC Explorer, v3.3.0 (commit: 'd96ded6e0d', date: 2022-06-25) at http://127.0.0.1:3002/ +1ms
  btcexp:app Connecting to RPC node at 127.0.0.1:8332 +2ms
  btcexp:app Verifying RPC connection... +11ms
  btcexp:app Loading mining pools config +4ms
  btcexp:error Error 937gf47dsyde: Error: read ECONNRESET, json: {"errno":-4077,"code":"ECONNRESET","syscall":"read"}, userData: [object Object] (json: {"host":"127.0.0.1","port":50002,"protocol":"tcp"}) +0ms
  btcexp:errorVerbose Stack: Error: read ECONNRESET
  btcexp:errorVerbose     at TCP.onStreamRead (node:internal/stream_base_commons:217:20) +0ms
  btcexp:error Error 120387rygxx231gwe40: Error: close connect, json: {}, userData: [object Object] (json: {}) +4ms
  btcexp:errorVerbose Stack: Error: close connect

The connection to the server at 127.0.0.1:50002 fails - but it works fine for a local electrum wallet...

What am I doing wrong? Or what can I do to find out more about what is going wrong?