Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot init the app #613

Open
liorwavebl opened this issue Jan 22, 2024 · 0 comments
Open

Cannot init the app #613

liorwavebl opened this issue Jan 22, 2024 · 0 comments
Labels

Comments

@liorwavebl
Copy link

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):

  • Bitcoin Core / Node Version 23.0
  • NodeJS Version [e.g. 9.x] v18.13.0
  • Browser [e.g. chrome, safari] chrome
  • Code Version / Commit latest release
  • Installation Method [e.g. "npm" or "source code"] both

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:[email protected]: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

@liorwavebl liorwavebl added the bug label Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant