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

Lake Life Simulator Fish Have Opinions

April 13, 2026

Best altcoins to buy as Bitcoin struggles below $85,000 after massive liquidations

April 7, 2026

Stablecoin expansion for DeFi users

April 1, 2026
Add A Comment

Comments are closed.

Recent Posts

Printr Launches V2 Platform Update With Five Fee Models And On-Chain Proof Of Belief Staking

April 14, 2026

Layer 1 Blockchains Comparison

April 14, 2026

OneCoin Investors (2014–2019) May Be Eligible For Department Of Justice Remission Compensation Process

April 14, 2026

Lake Life Simulator Fish Have Opinions

April 13, 2026

SEC issues framework for cryptocurrency trading apps and brokers

April 13, 2026

Bitmine Immersion Technologies (BMNR) Announces ETH Holdings Reach 4.875 Million Tokens, And Total Crypto And Total Cash Holdings Of $11.8 Billion

April 13, 2026

Cryptocurrency ETP receives up to $1.1 billion inflow since January

April 13, 2026

Cango’s HPC And AI Inference Subsidiary, EcoHash, Begins Commercial Operations

April 13, 2026

Ben Cowen: Bitcoin’s lowest probability is only 25%, a potential 70% decline is consistent with historical patterns, and the $60,000 level is important for market valuation.

April 13, 2026

how does blockchain improve privacy

April 12, 2026

Maintaining “Oneness of Money”: Insights from Stable Summit IV

April 12, 2026

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

Printr Launches V2 Platform Update With Five Fee Models And On-Chain Proof Of Belief Staking

April 14, 2026

Layer 1 Blockchains Comparison

April 14, 2026

OneCoin Investors (2014–2019) May Be Eligible For Department Of Justice Remission Compensation Process

April 14, 2026
Most Popular

Bank problems soar, Bitcoin surges

March 7, 2024

Core Scientific Presents at 19th Annual Needham Technology & Media Conference

May 16, 2024

Bernstein noted growing investor interest in Bitcoin miners turning to AI.

August 19, 2024
  • Home
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions
© 2026 Crypto Flexs

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