Very strange behavior of using couchbase cluster credential to call couchbase REST API

Hi, I am seeing the same issue on RHEL 6.6 x86_64 with CB 3.0.1. I can log in to the web console with the same credentials but get the following message when using couchbase-cli:

ERROR: unable to access the REST API - please check your username (-u) and password (-p)