Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-6920

setting hostname using secure port with REST API returns empty response

    XMLWordPrintable

Details

    • Task
    • Resolution: Won't Fix
    • Major
    • None
    • 6.5.x Doc Updates
    • rest
    • 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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            amarantha.kulkarni Amarantha Kulkarni (Inactive)
            hitesh.walia Hitesh Walia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty