Hi Everyone / Couchbase team.
Found an interesting bug? If I can call it that.
Seems the cluster.authenticate gives you an error, if you provide a username, which happens to be the same as the username you use to login into your CouchBase Admin console ( via http://localhost:8091 )
This is what you get:
"CouchbaseError: Authentication failed. You may have provided an invalid username/password combination"
Any other username does work, of course. You apparently can’t use the same name as your normal login, probably because its somehow stored in the Authentication as well.
Can the CouchBase team perhaps throw out a different error? Or at least put it somewhere in the documentation.
"CouchbaseError: Authentication failed. Invalid username."
At least something that forces developers to change the username.
Perhaps this applies to other libraries as well?? ( I used Node.js btw )
PS. I actually found this bug, because I was fixing a different bug haha.
All good. Have a great day all.