Bitcoin Forum
June 15, 2024, 12:32:10 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin RPC return 401 when it being called before the IBD complete  (Read 65 times)
orionstark (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
April 19, 2021, 07:03:43 AM
 #1

Hello, Is it normal? I've already set the config RPC with user and password correctly. But, when I'm trying to call it, it returns a 401 response.
NotATether
Legendary
*
Offline Offline

Activity: 1638
Merit: 6897


bitcoincleanup.com / bitmixlist.org


View Profile WWW
April 19, 2021, 08:11:47 AM
Merited by ABCbits (1)
 #2

The 401 response has nothing to do with the initial block download, it literally represents "Unauthorized", and it's returned when you're not passing the username and password using --rpcuser and --rpcpassword command line switches. (See this issue: https://github.com/bitcoin/bitcoin/issues/9661)

It's also returned when you did not specify a password at launch and you did not use the temporary password inside the .cookie file inside the datadir when you made the call.

How are you making the RPC call? Are you using curl from another machine with the user and password in your Bitcoin.conf, or are you doing this from a programming language, and which one? We need more information about how you're performing the call.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!