janoside / btc-rpc-explorer

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

Cannot init the app #613

Open liorwavebl opened 5 months ago

liorwavebl commented 5 months ago

When I'm starting the application I'm getting this error:

/usr/local/lib/node_modules/btc-rpc-explorer/views/includes/index-network-summary.pug:84
    82| +contentSection
    83|     - let halvingShown = false;
  > 84|     - let halvingProgressPercent = new Decimal(100).minus(new Decimal(nextHalvingData.blocksUntilNextHalving).dividedBy(nextHalvingData.halvingBlockInterval).times(100));
    85| 
    86|     if (nextHalvingData && halvingProgressPercent > 65)
    87|         - halvingShown = true;

[DecimalError] Invalid argument: undefined

Environment (please complete the following information):

Configuration file content

Please include the content from the following files. BE SURE TO MODIFY YOUR CREDENTIALS BEFORE SUBMITTING!!!

 Bitcoin RPC Credentials (URI -OR- HOST/PORT/USER/PASS)
 Defaults:
   - [host/port]: 127.0.0.1:20000
   - [username/password]: none
   - timeout: 5000 (ms)
BTCEXP_BITCOIND_URI=bitcoin://ogydocs:wave@127.0.0.1:20000?timeout=10000
BTCEXP_BITCOIND_HOST=127.0.0.1
BTCEXP_BITCOIND_PORT=20000
BTCEXP_BITCOIND_USER=cooluser
BTCEXP_BITCOIND_PASS=verycoolpassword
BTCEXP_BITCOIND_RPC_TIMEOUT=5000

To Reproduce

Steps to reproduce the behavior:

  1. Go to source code folder
  2. Run npm install && npm start

Screenshots or Log Output

If applicable, add screenshots or log output to help explain your problem. Screenshot from 2024-01-22 14-49-01