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

Socket Hangups for RPC calls #51

Closed
agustinkassis opened this issue Sep 11, 2018 · 6 comments
Closed

Socket Hangups for RPC calls #51

agustinkassis opened this issue Sep 11, 2018 · 6 comments

Comments

@agustinkassis
Copy link

While trying to access http://localhost:8332
I get the following error and unable to access the website through browser.

Error for RPC command 'getchaintxstats': Error: socket hang up
Error for RPC command 'getchaintxstats': Error: socket hang up
Error for RPC command 'getblockchaininfo': Error: socket hang up
Unhandled Rejection at: Promise Promise {
{ Error: socket hang up
at createHangUpError (_http_client.js:322:15)
at Socket.socketOnEnd (_http_client.js:425:23)
at Socket.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1085:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
cause:
{ Error: socket hang up

@janoside
Copy link
Owner

@agustinkassis This is likely a RPC API version issue. This tool does not identify what version of node it's connected to and therefore doesn't tailor itself to RPC API differences between versions. May I ask: what version of Bitcoin Core are you running?

@agustinkassis
Copy link
Author

It was verison 1.6.2, recently updated to 1.6.3. Those API commands are available.

@ConanDW
Copy link

ConanDW commented Dec 6, 2018

Having this problem as well.

@janoside janoside changed the title Cant access via browser Socket Hangups for RPC calls Feb 5, 2019
@janoside
Copy link
Owner

janoside commented Feb 5, 2019

@agustinkassis @ConanDW It's been a long time, so not sure if you're still interested or working on getting this tool configured, but if so, I have another question: is your node configured to accept RPC requests from the host running btc-rpc-explorer? This would be done via "rpcallowip" configurations for your node.

Also, I'm assuming that your node version was 0.16.2 and upgraded to 0.16.3?

@janoside
Copy link
Owner

Happy to reopen if I hear back.

@jkb-kt
Copy link

jkb-kt commented May 29, 2023

Hello @janoside, I see it's been a few years since this issue was reported but I was "lucky" enough to run into it, too. I'm using Node v18.16.0 LTS with BTC Core 24.0.1. Not really sure what to do, I'll try to downgrade to Node 16 but other than that I'm out of ideas. Wanted to mention it here if anyone else ran into it on those versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants