janoside/btc-rpc-explorer

Error Start BTC RPC Explorer

Closed this issue · 1 comments

BTC Core V28.0, fully synced up on x86 Mac.
Added RPC credentials to CORE config file
Then added the same to credentials.js file and .env file in the bcc-rpc-folder.

Getting the following error on npm start -

btc-rpc-explorer@3.4.0 start
node ./bin/www

btcexp:app Searching for config files... +0ms
btcexp:app Config file not found at /Users/johndoe/.config/btc-rpc-explorer.env, continuing... +2ms
btcexp:app Config file not found at /etc/btc-rpc-explorer/.env, continuing... +0ms
btcexp:app Config file found at /Users/johndoe/btc-rpc-explorer/.env, loading... +0ms
btcexp:app Default cacheId '3.4.0' +2s
btcexp:app Enabling view caching (performance will be improved but template edits will not be reflected) +33ms
btcexp:app Session config: {"secret":"","resave":false,"saveUninitialized":true,"cookie":{"secure":false}} +0ms
btcexp:app Environment(development) - Node: v20.18.0, Platform: darwin, Versions: {"node":"20.18.0","acorn":"8.12.1","ada":"2.9.0","ares":"1.33.1","base64":"0.5.2","brotli":"1.1.0","cjs_module_lexer":"1.4.1","cldr":"45.0","icu":"75.1","llhttp":"8.1.2","modules":"115","napi":"9","nghttp2":"1.61.0","nghttp3":"0.7.0","ngtcp2":"1.1.0","openssl":"3.0.13+quic","simdutf":"5.5.0","tz":"2024a","undici":"6.19.8","unicode":"15.1","uv":"1.46.0","uvwasi":"0.0.21","v8":"11.3.244.8-node.23","zlib":"1.3.0.1-motley-71660e1"} +8ms
btcexp:app Using sourcecode metadata as cacheId: '2024-10-07-dd725e2d04' +37ms
btcexp:app Starting BTC RPC Explorer, v3.4.0 (commit: 'dd725e2d04', date: 2024-10-07) at http://127.0.0.1:3002/ +0ms
btcexp:app RPC Credentials: {
btcexp:app "host": "127.0.0.1",
btcexp:app "port": 8332,
btcexp:app "authType": "usernamePassword",
btcexp:app "username": "langoti",
btcexp:app "password": "
",
btcexp:app "authCookieFilepath": "/Users/johndoe/.bitcoin/.cookie",
btcexp:app "timeout": 5000
btcexp:app } +0ms
btcexp:app Connecting to RPC node at [127.0.0.1]:8332 +1ms
btcexp:app RPC Connection properties: {
btcexp:app "host": "127.0.0.1",
btcexp:app "port": 8332,
btcexp:app "username": "langoti",
btcexp:app "password": "*****",
btcexp:app "timeout": 5000
btcexp:app } +0ms
btcexp:app Verifying RPC connection... +0ms
btcexp:app Loading mining pools config +0ms
btcexp:error Error RpcError-001: Error: socket hang up, json: {"code":"ECONNRESET","userData":{"request":"getblockchaininfo"}}, userData: [object Object] (json: {"request":"getblockchaininfo"}) +0ms
btcexp:errorVerbose Stack: Error: socket hang up
btcexp:errorVerbose at Socket.socketCloseListener (node:_http_client:477:27)
btcexp:errorVerbose at Socket.emit (node:events:531:35)
btcexp:errorVerbose at TCP. (node:net:339:12) +0ms
btcexp:error Error 32ugegdfsde: Error: socket hang up, json: {"code":"ECONNRESET","userData":{"request":"getblockchaininfo"}}, userData: [object Object] (json: {}) +1ms
btcexp:errorVerbose Stack: Error: socket hang up
btcexp:errorVerbose at Socket.socketCloseListener (node:_http_client:477:27)
btcexp:errorVerbose at Socket.emit (node:events:531:35)
btcexp:errorVerbose at TCP. (node:net:339:12) +1ms
btcexp:error Error RpcError-001: Error: socket hang up, json: {"code":"ECONNRESET","userData":{"request":"getnetworkinfo"}}, userData: [object Object] (json: {"request":"getnetworkinfo"}) +0ms
btcexp:errorVerbose Stack: Error: socket hang up
btcexp:errorVerbose at Socket.socketCloseListener (node:_http_client:477:27)
btcexp:errorVerbose at Socket.emit (node:events:531:35)
btcexp:errorVerbose at TCP. (node:net:339:12) +0ms
^C

Can you please help with resolving this issue

RPC connect params were not defined in core config file. Specifying those resolved the issue.