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

[BP MB-40336] - Action continues even after error on REST API

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      Jon Strabala reports:

      Referring to the /

      {pause,resume,undeploy,deploy}

      endpoints one odd thing I ran the following (it claimed an error but the function still paused) so I think there is a bug:
      curl -XGET http://Administrator:password@192.168.3.150:8096/api/v1/functions/test/pause
      {
      "name": "ERR_INVALID_CONFIG",
      "code": 38,
      "description": "Invalid configuration",
      "attributes": null,
      "runtime_info":

      { "code": 38, "info": "Only POST call allowed to this endpoint" }

      }
      If we return an ERR_INVALID_CONFIG we shouldn't actually do the action.

      Attachments

        Issue Links

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

          Activity

            People

              vinayaka.kamath Vinayaka Kamath (Inactive)
              jeelan.poola Jeelan Poola
              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