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

            Ian.bridge Ian Bridge added a comment - Commit https://github.com/couchbase/docs-sync-gateway/commit/df8502b3bf7e29f4d4a701755f060f3c23f2d699

            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