Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-47088

[BP 6.6.3] misleading error message when missing link parameters from cli

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown
    • CX Sprint 252

    Description

      $ ../install/bin/couchbase-cli  analytics-link-setup --create -c 127.0.0.1:9000 -u couchbase -p couchbase --scope Default --name myLink --type couchbase --hostname 127.0.0.1:9001 --encryption none --username couchbase --password couchbase
      ERROR: 24093:Required parameter 'username' not supplied for encryption type 'none'
      

      $ ../install/bin/couchbase-cli  analytics-link-setup --create -c 127.0.0.1:9000 -u couchbase -p couchbase --scope Default --name myLink --type couchbase --hostname 127.0.0.1:9001 --encryption none --link-username couchbase --password couchbase
      ERROR: 24093:Required parameter 'password' not supplied for encryption type 'none'
      

      $ ../install/bin/couchbase-cli  analytics-link-setup --create -c 127.0.0.1:9000 -u couchbase -p couchbase --scope Default --name myLink --type couchbase --hostname 127.0.0.1:9001 --encryption none --link-username couchbase --link-password couchbase
      SUCCESS: Link created
      

      The REST API could provide better error messages, since it knows it's being invoked by the CLI.

      192.168.11.22 -  - [31/Mar/2021:15:34:59 -0400] "POST /analytics/link/Default/myLink HTTP/1.1" 400 76 - "couchbase-cli  7.0.0-0000"
      

      Attachments

        Issue Links

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

          Activity

            People

              umang.agrawal Umang
              michael.blow Michael Blow
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty