question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not work with BTC 0.19

See original GitHub issue

Describe the bug

When open default page:

  btcexp:app Unhandled Rejection at: Promise Promise {
  <rejected> TypeError: Cannot read property '0' of undefined
      at /home/bogdan/.config/yarn/global/node_modules/btc-rpc-explorer/app/api/rpcApi.js:129:30
      at process.internalTickCallback (internal/process/next_tick.js:77:7) } reason: TypeError: Cannot read property '0' of undefined
    at /home/bogdan/.config/yarn/global/node_modules/btc-rpc-explorer/app/api/rpcApi.js:129:30
    at process.internalTickCallback (internal/process/next_tick.js:77:7) stack: TypeError: Cannot read property '0' of undefined
    at /home/bogdan/.config/yarn/global/node_modules/btc-rpc-explorer/app/api/rpcApi.js:129:30
    at process.internalTickCallback (internal/process/next_tick.js:77:7) +10s

When go to Browse Blocks:

    message:
     'No such mempool or blockchain transaction. Use gettransaction for wallet transactions.',
    code: -5,
    name: 'RpcError' } } reason: { RpcError: No such mempool or blockchain transaction. Use gettransaction for wallet transactions.
    at getRpcResult (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/dist/src/parser.js:39:11)
    at body.map.response (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/dist/src/parser.js:91:16)
    at Array.map (<anonymous>)
    at Client.rpc (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/dist/src/parser.js:89:24)
    at Client.tryCatcher (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/node_modules/bluebird/js/release/promise.js:729:18)
    at Promise._fulfill (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/node_modules/bluebird/js/release/promise.js:673:18)
    at Request._callback (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/node_modules/bluebird/js/release/nodeback.js:45:21)
    at Request.self.callback (/home/bogdan/.config/yarn/global/node_modules/request/request.js:185:22)
    at Request.emit (events.js:187:15)
    at Request.<anonymous> (/home/bogdan/.config/yarn/global/node_modules/request/request.js:1161:10)
    at Request.emit (events.js:182:13)
    at IncomingMessage.<anonymous> (/home/bogdan/.config/yarn/global/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:273:13)
    at IncomingMessage.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1094:12)
    at process.internalTickCallback (internal/process/next_tick.js:72:19)
  message:
   'No such mempool or blockchain transaction. Use gettransaction for wallet transactions.',
  code: -5,
  name: 'RpcError' } stack: RpcError: No such mempool or blockchain transaction. Use gettransaction for wallet transactions.
    at getRpcResult (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/dist/src/parser.js:39:11)
    at body.map.response (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/dist/src/parser.js:91:16)
    at Array.map (<anonymous>)
    at Client.rpc (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/dist/src/parser.js:89:24)
    at Client.tryCatcher (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/node_modules/bluebird/js/release/promise.js:729:18)
    at Promise._fulfill (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/node_modules/bluebird/js/release/promise.js:673:18)
    at Request._callback (/home/bogdan/.config/yarn/global/node_modules/bitcoin-core/node_modules/bluebird/js/release/nodeback.js:45:21)
    at Request.self.callback (/home/bogdan/.config/yarn/global/node_modules/request/request.js:185:22)
    at Request.emit (events.js:187:15)
    at Request.<anonymous> (/home/bogdan/.config/yarn/global/node_modules/request/request.js:1161:10)
    at Request.emit (events.js:182:13)
    at IncomingMessage.<anonymous> (/home/bogdan/.config/yarn/global/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:273:13)
    at IncomingMessage.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1094:12)
    at process.internalTickCallback (internal/process/next_tick.js:72:19) +1m

Environment (please complete the following information):

  • Bitcoin Core / Node Version 0.19
  • NodeJS Version 11.x
  • Browser: any
  • Code Version: 195874987191fd68c50dcba967d8833d992e5b60

To Reproduce

  1. Deploy BTC 0.19, any mode (regtest/testnet/mainnet)
  2. Deploy BTC-RPC-Explorer pointing to BTC 0.19
  3. Go to main page, go to “Browse blocks”
  4. See errors in explorer daemon

Screenshots or Log Output

If applicable, add screenshots or log output to help explain your problem. image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
janosidecommented, Dec 4, 2019

Hey @Warchant - got my regtest env set up. I was able to reproduce the error on /peers right away. I wasn’t getting errors for other things though. Regardless, I thought that first-class support for testnet/regtest should be completed, and now it has. Please check out the latest updates in v1.1.4 and let me know if you’re still having problems here.

0reactions
Warchantcommented, Dec 5, 2019

It is okay for now. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bitcoin Core 0.19.0.1
It is not recommended to use Bitcoin Core on unsupported systems. Bitcoin Core should also work on most other Unix-like systems but is...
Read more >
Bitcoin mining difficulty barely adjusts downward by 0.19% as ...
Bitcoin mining difficulty has barely budged over the past week and saw a 0.19 percent drop following the Nov. 7 adjustment.
Read more >
Bitcoin Core version 0.19.1 released
Bitcoin Core is supported and extensively tested on operating systems using the Linux kernel, macOS 10.10+, and Windows 7 and newer. It is...
Read more >
Bitcoin-cli 0.19.1 Wallet not Sending from Addresses with ...
The coin selection algorithm present in Bitcoin Core 0.19 tries to either find a solution where there is no change output, or a...
Read more >
Bitcoin Core 0.19.0 Released: Here's What's New
This means that a Bitcoin Core 0.19.0 node will not automatically send filters to other Bitcoin users' wallets. This feature could be added...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found