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

Bitcoin price holds near $109,000 as traders eye a November bounce.

November 2, 2025

US Bitcoin reports holdings of 3,865 BTC after recent acquisition

October 27, 2025

Bitcoin Futures Traders Return to Pumping BTC: Will It Last?

October 21, 2025
Add A Comment

Comments are closed.

Recent Posts

Cango Inc. Announces October 2025 Bitcoin Production And Mining Operations Update

November 3, 2025

Bitcoin Miners On The 8HoursMining Platform Can Easily Earn Up To $5,313 Per Day!

November 3, 2025

One SuperApp. Infinite Yield. Powered By $TEA

November 3, 2025

Institutional Bitcoin purchases fall below mining supply

November 3, 2025

As PS5 And Gaming Gift Card Use Grows, GiftlyCard.com Confirmed Legitimate By Independent Review Platforms

November 3, 2025

Why the Fed Massively Injected $29.4 Billion in Liquidity and How It Affects BTC

November 3, 2025

Bitcoin price holds near $109,000 as traders eye a November bounce.

November 2, 2025

Bitcoin decline extends — Markets are under pressure due to risk aversion.

November 2, 2025

Cryptocurrency Inheritance Update: October 2025

November 2, 2025

UK Financial Ltd. Launches Innovative Tokenized Reserve Bank for Maya Preferred RP Gold Assets

November 2, 2025

Ethereum confirms Fusaka upgrade December release date

November 1, 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

Cango Inc. Announces October 2025 Bitcoin Production And Mining Operations Update

November 3, 2025

Bitcoin Miners On The 8HoursMining Platform Can Easily Earn Up To $5,313 Per Day!

November 3, 2025

One SuperApp. Infinite Yield. Powered By $TEA

November 3, 2025
Most Popular

Bitcoin ETF Scam – How to Spot Fake Crypto Exchange Traded Funds

February 27, 2024

Wistron improves manufacturing energy efficiency with AI and NVIDIA Omniverse

June 3, 2024

XRP price could soon be the next to rebound. Here’s why:

December 24, 2023
  • 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.