Crypto Flexs
  • DIRECTORY
  • CRYPTO
    • ETHEREUM
    • BITCOIN
    • ALTCOIN
  • BLOCKCHAIN
  • EXCHANGE
  • ADOPTION
  • TRADING
  • HACKING
  • SLOT
Crypto Flexs
  • DIRECTORY
  • CRYPTO
    • ETHEREUM
    • BITCOIN
    • ALTCOIN
  • BLOCKCHAIN
  • EXCHANGE
  • ADOPTION
  • TRADING
  • HACKING
  • SLOT
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

Is the transaction fee the lowest?

May 19, 2025

Hyena Heist slot alliteration and change

May 19, 2025

Doodles NFT team starts social AI mini games

May 18, 2025
Add A Comment

Comments are closed.

Recent Posts

Ethena (ENA) Whale locks the loss, but did you get too fast?

May 20, 2025

NVIDIA and Microsoft Propel AI innovation

May 20, 2025

Bitcoin Fractal Analysis predicts a new all -time high of $ 110K by the weekend.

May 20, 2025

Quantum biopharma is added to encryption holding.

May 20, 2025

Ether Lee’s MVRV indicators turn over with optimistic territory. Is there a rally on the horizon?

May 20, 2025

Atgenomix Seqslab innovates precision medicine with expandable health OMICS analysis.

May 20, 2025

Baked in Trump Coin, Justin Sun Meme Coin Fest?

May 20, 2025

Bitcoin trading BTC in 6-digit territory shows that it is ready to carry gold ‘Baton’ -Fidelity Exec

May 20, 2025

Global Ripple Effects: How the shift in US policy and regulation is reshaping Digital Assets

May 20, 2025

The aggressive Bitcoin purchase of Microstrategy continues in the lawsuit.

May 19, 2025

Trends that should not be missed in 2025

May 19, 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

Ethena (ENA) Whale locks the loss, but did you get too fast?

May 20, 2025

NVIDIA and Microsoft Propel AI innovation

May 20, 2025

Bitcoin Fractal Analysis predicts a new all -time high of $ 110K by the weekend.

May 20, 2025
Most Popular

SEDA’s flagship verification module has secured an industry of $ 120 billion.

February 11, 2025

Solana’s 24-hour DEX trading volume surpasses Ethereum and Base combined.

January 7, 2025

Security Warning 1 (windows+alethzero) | Ethereum Foundation Blog

May 2, 2024
  • 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.