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

SG 3.0 admin_interface code example yields error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 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

          Activity

            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:

                PagerDuty