• About
  • FAQ
  • Earn Bitcoin while Surfing the net
  • Buy & Sell Crypto on Paxful
Newsletter
Approx Foundation
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
Approx Foundation
No Result
View All Result
Home Bitcoin

bitcoin core node won’t allow me to request commands

Moussa by Moussa
January 31, 2024
in Bitcoin
0
peer discovery – how to obtain the IP addresses of nodes for mining pools?
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


I have downloaded and installed and got up and running a bitcoin core node, and it is running fine as far as people are connecting to it on port 8333 just fine. However I can’t seem to connect to it myself on the same machine using python bitcoinrpc library…

My .conf files looks like…

port=8333
timeout=10000
printtoconsole=1
chain=main
rpcuser=one
rpcport=8334
#rpcauth=one:xxxxxx
server=1
coinstatsindex=1
daemon=1
txindex=1

and my python app..

from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException

# rpc_user and rpc_password are set in the bitcoin.conf file
rpc_user = "one"
rpc_password = "two"
rpc_connection = AuthServiceProxy("http://%s:%[email protected]:8334"%("one","two"))

best_block_hash = rpc_connection.getbestblockhash()

And when it runs it fails on line

best_block_hash = rpc_connection.getbestblockhash()

with the following error…

Traceback (most recent call last):
  File ".\bitcoin104.py", line 10, in <module>
    best_block_hash = rpc_connection.getbestblockhash()
  File "D:\PROJECTS\python38_env_bitcoin\.venv\lib\site-packages\bitcoinrpc\authproxy.py", line 139, in __call__
    response = self._get_response()
  File "D:\PROJECTS\python38_env_bitcoin\.venv\lib\site-packages\bitcoinrpc\authproxy.py", line 179, in _get_response
    http_response = self.__conn.getresponse()
  File "c:\users\hanso\appdata\local\programs\python\python38\lib\http\client.py", line 1344, in getresponse
    response.begin()
  File "c:\users\hanso\appdata\local\programs\python\python38\lib\http\client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "c:\users\hanso\appdata\local\programs\python\python38\lib\http\client.py", line 276, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

I have checked all my ports, and I am certain they are working, they work through telnet, the netstat -a shows the ports are listening when i open the bitcoin core node, and when i try a different port I get a different error complaining about host connection was refused. So I am 99% certain the port forwarding and firewall is open to the desired ports. Port 8333 for outside connections shows a log of people connecting to the server. So I am almost certain it is not the machine, firewall, or router not allowing connections through the port.

That leaves either something I am setting up wrong with the password. I changed the setup to use a simple one, two useid and password for testing, and so I can post here to show exactly what I am doing word for word in the conf and the python script.

I am really pounding my head against the wall.. Is it possible something to do with rpcauth… i tried running that and creating a hash and then tried to use that as a replacement in my http://pass:[email protected],1:8334 connection. But it doesnt’ seem to work either. But funny enough when I type the clearly wrong password in i get the same error I am getting now. But if I change say the ip address then it fails up on the AuthServiceProxy creation line instead. And the issue says that the machine host refused connection. So all this points to the node node liking my userid and/or password but I can’t find any examples to know for sure I am setting these up correctly for the node in the .conf file before launching node, or if i am doing something wrong in the python script?



Source link

Related articles

Ethereum Price Loses $2,350 Level, Traders Eye Rebound Signals

Ethereum Price Loses $2,350 Level, Traders Eye Rebound Signals

April 20, 2026
Bitcoin Drops Below $74,000 After Iran Rejects Second Round of US Peace Talks

Bitcoin Drops Below $74,000 After Iran Rejects Second Round of US Peace Talks

April 20, 2026
Share76Tweet47

Related Posts

Ethereum Price Loses $2,350 Level, Traders Eye Rebound Signals

Ethereum Price Loses $2,350 Level, Traders Eye Rebound Signals

by Moussa
April 20, 2026
0

Ethereum price started a fresh decline and traded below $2,350. ETH is now consolidating above $2,250 and might struggle to...

Bitcoin Drops Below $74,000 After Iran Rejects Second Round of US Peace Talks

Bitcoin Drops Below $74,000 After Iran Rejects Second Round of US Peace Talks

by Moussa
April 20, 2026
0

Key Takeaways: Bitcoin fell to approximately $73,753 on April 19, 2026, after Iran rejected a second round of U.S. peace...

XRP SuperTrend Flips Bullish For First Time Since January, Is A Rally to $1.90 Next?

XRP SuperTrend Flips Bullish For First Time Since January, Is A Rally to $1.90 Next?

by Moussa
April 20, 2026
0

Trusted Editorial content, reviewed by leading industry experts and seasoned editors. Ad Disclosure XRP has spent the better part of...

Fresh Manipulation Warnings Hit Other Crypto Projects After RAVE’s 95% Collapse

Fresh Manipulation Warnings Hit Other Crypto Projects After RAVE’s 95% Collapse

by Moussa
April 19, 2026
0

Key Takeaways: Broader warnings point to structural weaknesses across parts of the crypto token market. Major exchanges face rising pressure...

Strategy Raises $1.76B War Chest As Saylor Signals Bigger Bitcoin Buy

Strategy Raises $1.76B War Chest As Saylor Signals Bigger Bitcoin Buy

by Moussa
April 19, 2026
0

They say journalists never truly clock out. But for Christian, that's not just a metaphor, it's a lifestyle. By day,...

Load More

youssufi.com

sephina.com

[vc_row full_width="stretch_row" parallax="content-moving" vc_row_background="" background_repeat="no-repeat" background_position="center center" footer_scheme="dark" css=".vc_custom_1517813231908{padding-top: 60px !important;padding-bottom: 30px !important;background-color: #191818 !important;background-position: center;background-repeat: no-repeat !important;background-size: cover !important;}" footer_widget_title_color="#fcbf46" footer_button_bg="#fcb11e"][vc_column width="1/4"]

We bring you the latest in Crypto News

[/vc_column][vc_column width="1/4"][vc_wp_categories]
[/vc_column][vc_column width="1/4"][vc_wp_tagcloud taxonomy="post_tag"][/vc_column][vc_column width="1/4"]

Newsletter

[vc_raw_html]JTNDcCUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIydG5wJTIwdG5wLXN1YnNjcmlwdGlvbiUyMiUzRSUwQSUzQ2Zvcm0lMjBtZXRob2QlM0QlMjJwb3N0JTIyJTIwYWN0aW9uJTNEJTIyaHR0cHMlM0ElMkYlMkZhcHByb3gub3JnJTJGJTNGbmElM0RzJTIyJTNFJTBBJTBBJTNDaW5wdXQlMjB0eXBlJTNEJTIyaGlkZGVuJTIyJTIwbmFtZSUzRCUyMm5sYW5nJTIyJTIwdmFsdWUlM0QlMjIlMjIlM0Ul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ZC1idXR0b24lMjIlM0UlM0NpbnB1dCUyMGNsYXNzJTNEJTIydG5wLXN1Ym1pdCUyMiUyMHR5cGUlM0QlMjJzdWJtaXQlMjIlMjB2YWx1ZSUzRCUyMlN1YnNjcmliZSUyMiUyMCUzRSUwQSUzQyUyRmRpdiUzRSUwQSUzQyUyRmZvcm0lM0UlMEElM0MlMkZkaXYlM0UlM0NiciUyRiUzRSUzQyUyRnAlM0U=[/vc_raw_html][/vc_column][/vc_row]
No Result
View All Result
  • Contact Us
  • Homepages
  • Business
  • Guide

© 2024 APPROX FOUNDATION - The Crypto Currency News