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

The US government posts GDP data on Bitcoin block chain.

August 28, 2025

Ether ETF is a comeback of $ 280 million, with bitcoin leaked stripes hit on the 5th.

August 22, 2025

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

August 16, 2025
Add A Comment

Comments are closed.

Recent Posts

WorldShards Announces Partnership With ByBit And TGE Date

September 1, 2025

EcoSync & CarbonCore Launch Full Stages Refi Infrastructure Linking Carbon Credits With Web3

September 1, 2025

NFT sales in August increased 2.78% in July 2025

September 1, 2025

Bitcoin Price Posts for 5 consecutive August losses: Will Michael Saylor react?

August 31, 2025

Metaplanet’s bitcoin strategy is having trouble with stock plummet in the crisis of financing.

August 31, 2025

Next chapter of ecosystem support program

August 31, 2025

Ether Lee (ETH) tests major support for $ 4,453 after the highest rejection.

August 31, 2025

BNB price forecast: Target $ 890- $ 900 in September 2025.

August 31, 2025

After BTS Star Jungkook has 39 billion hacking, South Korea will crack down on encryption fraud.

August 30, 2025

FY Energy Offers Industry-leading Cloud Computing Systems, Offering Opportunities For Daily Passive Income Of $7,580 Through Mining.

August 30, 2025

Four coins to be purchased as decisions for five branch XRP ETFs will be pushed until October.

August 30, 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

WorldShards Announces Partnership With ByBit And TGE Date

September 1, 2025

EcoSync & CarbonCore Launch Full Stages Refi Infrastructure Linking Carbon Credits With Web3

September 1, 2025

NFT sales in August increased 2.78% in July 2025

September 1, 2025
Most Popular

Immutable (IMX) achieves major milestone in July 2024, enters Japan

August 7, 2024

Betting on the U.S. presidential race totals about $4 billion on Election Day.

November 5, 2024

Cointel Raises $7.4M In Strategic Round Led By Avalanche And Sugafam Inc.

August 20, 2025
  • 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.