-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Getting Error When Trying To View Individual Blocks #45
Comments
@apbendi Can you check what your latest commit is? Trying to reproduce on the demo site I'm not seeing the error for that particular block: https://btc.chaintools.io/block-height/535967 Another question: do you have pruning active on your node? Glad you're enjoying the tool! |
Thanks for the fast reply! I cloned master just a few minutes before reporting the issue. The issue seems to occur for all blocks-- I tried with a series of recent blocks, as well as the genesis block, and received the same error. My node is not pruning-- I'm in sync with the full chain and can run Just in case it matters, my node is not the same machine as the one running the explorer. The node is running Linux and is on the same LAN. The local IP of my Mac (where the explorer is running) is whitelisted in my node's config, and, as mentioned, can make RPC calls via Let me know if theres anything I can do to help debug the issue on my end. Thanks! |
Thanks for the additional info. Given the error you're seeing, your setup (linux node, mac explorer) shouldn't be the cause. Another question: What version is your node? I'm currently running "/Satoshi:0.16.0/" both locally and on the demo server (haven't gotten around to upgrading to 0.16.2 yet) I just pushed some code that could help in debugging. If you update to at least commit a53e92f and navigate to a block-details page I'm hoping that some of the code changes at least provide some armor against the specific error you're seeing and may give some additional debugging insight. |
Hmmm, this has me scratching my head a bit, mostly because I can't think of what could be different between your env and mine. I see some brittle, error-prone code related to the errors you're seeing, but again, I can't tell why you're seeing errors and I'm not. I'd like to improve the error-prone code, but hopefully get you up and running before that. I have a couple more commits you can try out and let me know. I appreciate your report and your help resolving. |
I'll try your commits-- but it just occurred to me I'm on a rather old version of node |
So this is very weird! I updated to node 10.x and also pulled down your latest commits. I'm still seeing errors, but now it's about 50% of the time. The rest seem to work.
|
Interesting. So do you mean that you can refresh the same page and it will work 50% of the time, or that 50% of blocks that you view result in errors? I'm hoping for the latter option, in which case I have a handle on something concrete. There's another commit you can try which I'm hoping could get you most of the way there while I address the remaining issue. |
Eh...I'm doubting the idea I had a little bit ago. But still let me know about the latest commits. |
I should have some time to play with this again tomorrow and I'll let you know. Thanks! |
@apbendi Any update on this? |
Hey @janoside, gonna look into it this afternoon. Thanks for your patience! |
So, embarrassingly, I had a typo in my One useful thing here, for other dummies like me, might be to look for the error message returned by the node when asking for a transaction that is not indexed, and then display something helpful in the UI. Anyway, closing this issue out. By the way, I wrote up a guide for running a full node as a developer, and included running your explorer as part of it. Thought you might enjoy: https://www.buildblockchain.tech/blog/btc-node-developers-guide Thanks for an awesome tool! Cheers! |
Ah-ha! Thanks for the update. I'm glad we got to the bottom of this. I like your idea concerning the error-message detail and created #50 to track it. Thanks so much for your full-node-with-explorer guide...that's awesome! |
visiting an individual block url, such as
http://127.0.0.1:3002/block-height/535967
, results in the following error:As a sanity check, the RPC calls to my node for
getblockhash
andgetblock
work fine viacurl
. Running macOS Sierra. Any thoughts?Thanks for a great tool!
The text was updated successfully, but these errors were encountered: