<p>Wait a few minutes and the error will be gone.</p>

<p>The <a href="https://github.com/bitcoin/bitcoin/blob/62f2d769e45043c1f262ed45babb70fe237ad2bb/src/rpc/protocol.h#L30" rel="noreferrer">source code</a> defines error 28 as</p>

<blockquote>
  <p>Client still warming up</p>
</blockquote>

CC BY-SA 3.0
2017-09-21T03:48:12.573Z
thank you for reply. After waiting 20 minutes, message was changed into "error code: -32601
error message:
Method not found"
user6894661
CC BY-SA 3.0
2017-09-21T05:21:25.217Z
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).
Pieter Wuille
CC BY-SA 3.0
2017-09-21T05:22:16.853Z
You should use `getwalletinfo`, `getblockchaininfo`, `getpeerinfo`, `getnetworkinfo`, ... to request more specific information.
Pieter Wuille
CC BY-SA 3.0
2017-09-21T10:49:46.137Z
I tried these commands you showed then I got return! Thank you!
user6894661
CC BY-SA 4.0
2021-01-10T18:55:34.823Z
In case these commands also return an error 28, you can follow the progress by tailing the debug log: `tail -f debug.log`
pors
CC BY-SA 3.0
2017-09-21T03:00:39.940Z
2017-09-21T03:00:39.940Z
Cedric Martens
<p>use <code>bitcoin-cli -getinfo</code> instead of <code>getinfo</code></p>

CC BY-SA 3.0
2018-02-02T09:14:28.380Z
2018-02-03T05:38:27.417Z
2018-02-03T05:38:27.417Z
bluefish
<p>OSX Sierra</p>

<p>it seems all the other command bitcoin-cli working on my Mac,
except,  </p>

<p><strong>bitcoin-cli getinfo</strong> only always returns an error.</p>

<blockquote>
  <p>$ bitcoin-cli getinfo 
  error code: -28<br>
  error message:<br>
  Rewinding blocks...</p>
</blockquote>

<p>Why does it happen?</p>

<bitcoin-cli>
bitcoin-cli getinfo error code: -28
user6894661
# bitcoin-cli getinfo error code: -28

(Asked by: username_0 on 2017-09-21)

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?

**Tags:** bitcoin-cli


---

## 2 answers

### Answer by username_1 on 2017-09-21. Score: 4

Wait a few minutes and the error will be gone.

The [source code](https://github.com/bitcoin/bitcoin/blob/62f2d769e45043c1f262ed45babb70fe237ad2bb/src/rpc/protocol.h#L30) defines error 28 as

> Client still warming up

> **Comments:**
> **username_0**: thank you for reply. After waiting 20 minutes, message was changed into "error code: -32601 error message: Method not found"  
> **username_2**: 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).  
> **username_2**: You should use `getwalletinfo`, `getblockchaininfo`, `getpeerinfo`, `getnetworkinfo`, ... to request more specific information.  
> **username_0**: I tried these commands you showed then I got return! Thank you!  
> **username_3**: In case these commands also return an error 28, you can follow the progress by tailing the debug log: `tail -f debug.log`  

---

### Answer by username_4 on 2018-02-02. Score: 3

use `bitcoin-cli -getinfo` instead of `getinfo`


---

