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 remains stable as Texas allocates $5 million to BlackRock’s IBIT.

November 26, 2025

BTC price could be range-bound to $60,000-$80,000 pending a rate cut.

November 20, 2025

Bearish Administration: Let’s take a look at how the Bitcoin price has changed since Donald Trump became President.

November 14, 2025
Add A Comment

Comments are closed.

Recent Posts

Technance Introduces Institutional-Grade Infrastructure For Exchanges, Fintech Platforms, And Web3 Applications

November 27, 2025

Investors Eye 900× ROI Potential as Ozak AI Continues Record Presale Momentum

November 27, 2025

Korea’s Upbit reports $36 million loss due to Solana hot wallet breach

November 27, 2025

Bitcoin remains stable as Texas allocates $5 million to BlackRock’s IBIT.

November 26, 2025

Bull and Bear Scenarios for XRP That Could Happen in November

November 26, 2025

Quantum-secure data storage for app developers with open source Shamir secret sharing for capacitors

November 26, 2025

Bybit’s 7th Anniversary Shares A $2.5 Million Thank-You With Nearly 80 Million Traders Worldwide

November 26, 2025

MEXC Launches Year-End Golden Era Showdown With 2,000g Gold Bar And BTC From 10 Million USDT Prize Pool

November 26, 2025

How SolStaking’s Yield Model Makes It Possible To Earn $7,700 Per Day In Passive Income — As Solana Reclaims Market Momentum

November 26, 2025

Monad mainnet fraud warnings increase as fake ERC20 transfers spread to new chains

November 26, 2025

The ETH Whale Buying Spree Has Begun! BlackchainMining Is Taking You On The Get-rich-quick Train

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

Technance Introduces Institutional-Grade Infrastructure For Exchanges, Fintech Platforms, And Web3 Applications

November 27, 2025

Investors Eye 900× ROI Potential as Ozak AI Continues Record Presale Momentum

November 27, 2025

Korea’s Upbit reports $36 million loss due to Solana hot wallet breach

November 27, 2025
Most Popular

Dogecoin rises 21% as whales pile up, Galaxy predicts $1 DOGE.

January 5, 2025

Gemini file for Gemi’s NASDAQ list as a loss mount

August 16, 2025

Yuga Labs, creator of Bored Apes, acquires Proof, Moonbirds NFT brand

February 17, 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.