Umang, I've set up build 7861 for (macOS) and ran
% curl -v -u dcp_user http://localhost:8095/analytics/service
|
(where dcp_user is actually a Data DCP Reader) and I got
Enter host password for user 'dcp_user':
|
* Trying ::1...
|
* TCP_NODELAY set
|
* Connection failed
|
* connect to ::1 port 8095 failed: Connection refused
|
* Trying 127.0.0.1...
|
* TCP_NODELAY set
|
* Connected to localhost (127.0.0.1) port 8095 (#0)
|
* Server auth using Basic with user 'dcp_user'
|
> GET /analytics/service HTTP/1.1
|
> Host: localhost:8095
|
> Authorization: Basic ZGNwX3VzZXI6ZGNwX3VzZXI=
|
> User-Agent: curl/7.64.1
|
> Accept: */*
|
>
|
< HTTP/1.1 401 Unauthorized
|
< connection: keep-alive
|
* Authentication problem. Ignoring this.
|
< www-authenticate: Basic
|
< content-length: 70
|
<
|
{
|
"errors": [{
|
"code": 20000,
|
"msg": "Unauthorized user." }
|
]}
|
* Connection #0 to host localhost left intact
|
* Closing connection 0
|
which yielded the expected HTTP status code.
Do you have some logs for the execution that yielded the Internal Server Error?
Build couchbase-server-6.6.2-9599 contains cbas-core commit 1bc521f with commit message:
MB-40294: Return 401 HTTP reponse on unauthorized user error