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

What are the next steps for HYPE June token unlock?

June 6, 2026

Bitcoin ETF Ends May Carnage with Weekly Outflows of $1.42 Billion

May 31, 2026

Cryptocurrency looks like Nvidia before AI went mainstream: Jeff Park

May 25, 2026
Add A Comment

Comments are closed.

Recent Posts

World Cup 2026 Prediction Markets Now Live On Whale.io With $90K In Prizes

June 10, 2026

Chris Jericho To Join And Co-Create Official Community Traits For Kokopi Koalas™ NFT Collection

June 9, 2026

Bancor reduced its stable fee to 0.001%. Can BNT bounce back?

June 9, 2026

Neura Closes Strategic Funding Round And Partnerships To Build Emotional AI With Persistent, User-Owned Memory

June 9, 2026

Phemex Kicks Off $7 Million Ultimate Championship, Bringing Trading Competition To Football Season

June 9, 2026

MEXC Prediction Markets Launches Combo To Enable Multi-Event Combination Trading

June 9, 2026

ZIGChain expands on-chain access by integrating Ondo tokenized stocks and ETFs.

June 8, 2026

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

June 8, 2026

MapleStory Universe Opens MSU Space And Launches Global Game Jam Competition As Part Of MSU 2.0 Expansion

June 8, 2026

Why is UK Financial Ltd’s trillion-dollar ERC-3643 conversion attracting major platforms?

June 7, 2026

Bybit Launches IPO Express, Becoming One Of First Centralized Crypto Exchanges To Offer Tokenized IPO Access, Starting With SpaceX

June 7, 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

World Cup 2026 Prediction Markets Now Live On Whale.io With $90K In Prizes

June 10, 2026

Chris Jericho To Join And Co-Create Official Community Traits For Kokopi Koalas™ NFT Collection

June 9, 2026

Bancor reduced its stable fee to 0.001%. Can BNT bounce back?

June 9, 2026
Most Popular

Japan pushes to promote Web3 by ending tax on unrealized cryptocurrency asset gains

December 25, 2023

BNB Price Prediction: Investigating whether the altcoin can defend $700

December 17, 2024

NVIDIA unveils NeMo Retriever to advance multilingual AI

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