Details
-
Task
-
Resolution: Won't Fix
-
Major
-
None
-
6.5.x Doc Updates
-
1
Description
When you rename a node with the REST API on the secure port, CB returns empty response on the first attempt:
curl -sSfk -X POST https://localhost:18091/node/controller/rename -d hostname=BBTPNJ33W05vSPC-C-HP-DAB-20.src.hpsrnlab.com
curl: (52) Empty reply from server
Despite getting an error response, the node is actually renamed. When you do it the second time, there is no error response.
It should be documented this is expected behavior. When you change the node name, the web server restarts as it has to regenerate the built-in certificate. Therefore an empty reply is expected. This is the document I'm thinking should be updated: https://docs.couchbase.com/server/current/rest-api/rest-node-hostname.html