Crypto Flexs
  • DIRECTORY
  • CRYPTO
    • ETHEREUM
    • BITCOIN
    • ALTCOIN
  • BLOCKCHAIN
  • EXCHANGE
  • ADOPTION
  • TRADING
  • HACKING
  • SLOT
  • TRADE
Crypto Flexs
  • DIRECTORY
  • CRYPTO
    • ETHEREUM
    • BITCOIN
    • ALTCOIN
  • BLOCKCHAIN
  • EXCHANGE
  • ADOPTION
  • TRADING
  • HACKING
  • SLOT
  • TRADE
Crypto Flexs
Home»BITCOIN NEWS»python – RPC returns 403 from Umbrel – Stack Overflow
BITCOIN NEWS

python – RPC returns 403 from Umbrel – Stack Overflow

By Crypto FlexsJanuary 28, 20241 Min Read
Facebook Twitter Pinterest LinkedIn Tumblr Email
python – RPC returns 403 from Umbrel – Stack Overflow
Share
Facebook Twitter LinkedIn Pinterest Email

I have someone who can help me get closer to my goals.

my code

# rpc_user and rpc_password are set in the bitcoin.conf file
rpc_user = "umbrel"
rpc_pass = "pass"
rpc_host = "192.168.1.122"
rpc_port = "8332"
rpc_connection = f"http://rpc_user:rpc_pass@rpc_host:rpc_port"
rpc_client = AuthServiceProxy(rpc_connection, timeout=240)
num_blocks = rpc_client.getblockcount()
print(num_blocks)

We need to print the BlockHeight of the node. But it shows 403 – Forbidden.

error message

Traceback (most recent call last):
  File "/media/donbolli/code/python/bitcoin/crawler/test.py", line 37, in <module>
    num_blocks = rpc_client.getblockcount()
  File "/media/donbolli/code/python/bitcoin/venv/lib/python3.10/site-packages/bitcoinrpc/authproxy.py", line 139, in __call__
    response = self._get_response()
  File "/media/donbolli/code/python/bitcoin/venv/lib/python3.10/site-packages/bitcoinrpc/authproxy.py", line 186, in _get_response
    raise JSONRPCException({
bitcoinrpc.authproxy.JSONRPCException: -342: non-JSON HTTP response with '403 Forbidden' from server

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

Related Posts

The strategy has hit the highest market cap since the Rally Bitcoin rally.

July 17, 2025

21.72% of encryption in the second quarter of 2025

July 11, 2025

As Nano Labs begins to accumulate $ 1 billion, BNB gets a big supporter.

July 5, 2025
Add A Comment

Comments are closed.

Recent Posts

MultiBank Group To List $MBG Token On Gate.io And MEXC During Official Token Generation Event

July 18, 2025

Earn $4,777 Daily! PaxMining Leads 2025’s Record-Breaking Bitcoin Mining Boom

July 18, 2025

GSR Leads $100M Private Placement Into Nasdaq-listed MEI Pharma To Launch First Institutional Litecoin Treasury Strategy Alongside Charlie Lee

July 18, 2025

KuCoin Launches XStocks, Delivering A One-Stop Access Point To Top Global Tokenized Equities

July 18, 2025

💵 FREE $18 USDT – Just For Signing Up!

July 18, 2025

How Does AIXA Mining Break Traditional Barriers?

July 18, 2025

How Does AIXA Mining Break Traditional Barriers?

July 18, 2025

The future of EF ecosystem development

July 18, 2025

Satoshi-Aera Bitcoin Whale moves another 40K BTC to Galaxy Digital.

July 18, 2025

Behind The Surge In XRP, DLMining Brings New Opportunities To Mine BTC With Your XRP

July 18, 2025

The strategy has hit the highest market cap since the Rally Bitcoin rally.

July 17, 2025

Crypto Flexs is a Professional Cryptocurrency News Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of Cryptocurrency. We hope you enjoy our Cryptocurrency News as much as we enjoy offering them to you.

Contact Us : Partner(@)Cryptoflexs.com

Top Insights

MultiBank Group To List $MBG Token On Gate.io And MEXC During Official Token Generation Event

July 18, 2025

Earn $4,777 Daily! PaxMining Leads 2025’s Record-Breaking Bitcoin Mining Boom

July 18, 2025

GSR Leads $100M Private Placement Into Nasdaq-listed MEI Pharma To Launch First Institutional Litecoin Treasury Strategy Alongside Charlie Lee

July 18, 2025
Most Popular

Is it too late to buy ADA? Cardano price surged 18%, making TRON the 9th largest cryptocurrency. This could be the next cryptocurrency to explode.

November 8, 2024

In-depth analysis of the best cryptocurrency investments: GALA’s performance, HBAR’s outlook, BlockDAG’s $600 million game changer

March 30, 2024

The top financing expert describes the reason why 2025 is the moment of XRP definition.

January 28, 2025
  • Home
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions
© 2025 Crypto Flexs

Type above and press Enter to search. Press Esc to cancel.