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

A Year of Colocation with Beeks: Open Access to Low-Latency Transactions

May 1, 2026

What the KelpDAO Exploit Reveals About Hidden Risks in DeFi

April 25, 2026

taproot – Is the OP_SUCCESSx reservation in BIP-342 designed with a specific opcode family in mind, or as a general forward compatibility mechanism?

April 19, 2026
Add A Comment

Comments are closed.

Recent Posts

UAE Free Zone Deploys Blockchain ID to Verify Registered Companies

May 5, 2026

The price of Bitcoin has recovered to $80,000 for the first time since January.

May 4, 2026

DeLorean Brings Its Iconic IP To Solana

May 4, 2026

OpenGPU Network -Turn Your Computer Into A Revenue-Generating Engine In The AI Era

May 4, 2026

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

May 4, 2026

Fuutura Outlines Architecture Built for Cross-Border Stablecoin Pathway Currently Tracked by IMF

May 4, 2026

Ondo price prediction: Bulls target multi-month resistance at $0.30.

May 3, 2026

As smart money accumulates, Bitcoin stalls below the resistance line.

May 2, 2026

Minnesota bans AI apps that create fake nude images

May 2, 2026

A Year of Colocation with Beeks: Open Access to Low-Latency Transactions

May 1, 2026

Guardian Rewards – Vault12

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

UAE Free Zone Deploys Blockchain ID to Verify Registered Companies

May 5, 2026

The price of Bitcoin has recovered to $80,000 for the first time since January.

May 4, 2026

DeLorean Brings Its Iconic IP To Solana

May 4, 2026
Most Popular

Lowest search interest since 2020 – 5 things to know about Bitcoin this week

October 21, 2024

Top Cryptocurrency for BlockDAG’s Moon Keynote Teaser Increases Presales to $18.1 Million, Beating Sponge V2 and XRP Price Trends

April 18, 2024

After the SEC’s ‘DeFi war’ began, UNI and others are having difficulty recovering.

May 18, 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.