Hi,
I’d encounter access issue when I set a password protected bucket and try to access the Sync Gateway Admin REST API.
I connect in SSH to the server hosting the sync gateway and the execute a curl command to get the list of users but an HTTP 401 Unauthorized response is return. Here is what I did:
curl -X GET ‘localhost:4985/{DB}/_user/’
the response is:
{“error”:“Internal Server Error”,“reason”:“Internal error: error executing view req at http://OBFUSCATED_INTERNAL_URI:8092/{DB}/_design/sync_gateway/_view/principals?stale=false: 401 Unauthorized - {“error”:“unauthorized”,“reason”:“password required”}\n”}
As you can see, the underlying request receive the 401 Unauthorized response.
Everything work fine if I remove the password from the bucket, but it’s not what we want…