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

SG 3.0 admin_interface code example yields error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Mobile 3.0
    • Mobile 3.0
    • sync-gateway
    • 1

    Description

      Code example reads as follows:

       

        api: {
          "admin_interface": "http://localhost:4985", 
          "admin_interface_authentication": true

       

      Using this example yields an error:

       

      2022-03-03T00:18:54.039Z [ERR] Error serving the Admin API: listen tcp: address http://localhost:4985: too many colons in address – rest.startServer.func3() at config.go:1324

       

      Example should not include the "http://localhost" part, just the ":4985".  (This is actually what is spelled out in the note below the sample code, but for people who click the copy button to use the example code this is not sufficient.  See image below.)

      Attachments

        Issue Links

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

          Activity

            peter.reale Peter Reale created issue -
            Ian.bridge Ian Bridge made changes -
            Field Original Value New Value
            Priority Minor [ 4 ] Critical [ 2 ]
            Ian.bridge Ian Bridge made changes -
            Fix Version/s Mobile 3.0 [ 17243 ]
            Ian.bridge Ian Bridge made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            Ian.bridge Ian Bridge made changes -
            Affects Version/s Mobile 3.0 [ 17243 ]
            Affects Version/s 3.0.x [ 12418 ]
            Due Date 03/Mar/22
            Labels triaged
            Ian.bridge Ian Bridge made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            peter.reale Peter Reale made changes -
            Link This issue is cloned by DOC-9781 [ DOC-9781 ]

            People

              Ian.bridge Ian Bridge
              peter.reale Peter Reale
              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