OSX Sierra

it seems all the other command bitcoin-cli working on my Mac, except,

bitcoin-cli getinfo only always returns an error.

$ bitcoin-cli getinfo error code: -28
error message:
Rewinding blocks...

Why does it happen?

2 Answers 2


Wait a few minutes and the error will be gone.

The source code defines error 28 as

Client still warming up

  • thank you for reply. After waiting 20 minutes, message was changed into "error code: -32601 error message: Method not found" Sep 21, 2017 at 3:48
  • 1
    That's because getinfo was removed. It's marked as deprecated with a warning in 0.15, but apparently you're running master (which will become 0.16, with getinfo removed). Sep 21, 2017 at 5:21
  • 1
    You should use getwalletinfo, getblockchaininfo, getpeerinfo, getnetworkinfo, ... to request more specific information. Sep 21, 2017 at 5:22
  • I tried these commands you showed then I got return! Thank you! Sep 21, 2017 at 10:49
  • In case these commands also return an error 28, you can follow the progress by tailing the debug log: tail -f debug.log
    – pors
    Jan 10, 2021 at 18:55

use bitcoin-cli -getinfo instead of getinfo

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.