couchbaselabs / cbft

*THIS PROJECT HAS MOVED* from couchbaselabs TO: https://github.com/couchbase/cbft -- no further development will be done here on couchbaselabs/cbft
Other
27 stars 5 forks source link

Correct 0.2.0 cbft server start exception message #154

Closed weilliu closed 9 years ago

weilliu commented 9 years ago

0.2.0 cbft-full start returns the same "not a URL " error message under the following circumstance

[root@centos-58 cbft]# ./cbft-full.linux.amd64 -server=http://Administrator:psword@10.3.3.203:8091
2015/07/16 14:02:14 main: ./cbft-full.linux.amd64 started (v0.2.0-0-g9179ac8/3.1.0)
2015/07/16 14:02:14   -bindHttp="0.0.0.0:8095"
....
....
2015/07/16 14:02:14 FATAL: error: not a URL, server: "http://Administrator:psword@10.3.3.203:8091"
  Please check that your -server parameter is a valid URL
  (http://HOST:PORT), such as "http://localhost:8091",
  to a couchbase server -- main.main() at main.go:142
steveyen commented 9 years ago

see commit 4d5c41e

steveyen commented 9 years ago

With that fix, the output error message now looks like...

2015/07/17 08:25:53 FATAL: error: could not connect to server ("http://foo:bar@localhost:8091"), err: HTTP error 401 Unauthorized getting "http://localhost:8091/pools": Please check that your -server parameter ("http://foo:bar@localhost:8091") is correct, the couchbase server is accessible, and auth is correct (e.g., http://USER:PSWD@HOST:PORT) -- main.main() at main.go:143