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

Passing identifier in analytics service REST API throws error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • 6.6.1
    • 6.6.1
    • analytics
    • Untriaged
    • Centos 64-bit
    • 1
    • No

    Description

      Executing following REST API call gives error - 

      curl --location --request POST 'http://10.112.205.101:8095/analytics/service' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Accept: */*' \ --header 'Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==' \ --data-urlencode 'statement=select * from x where ($type is null OR `x`.`type` = $type) AND (`x`.`fname` is null OR `x`.`fname` = "c") AND (`x`.`lname` is null OR `x`.`lname` = "b");' \ --data-urlencode '$type=a'
      

      Error - 

      { "errors": [ { "code": 21009, "msg": "Unable to process JSON content in request" } ], "status": "fatal", "metrics": { "elapsedTime": "470.28µs", "executionTime": "0ns", "resultCount": 0, "resultSize": 0, "processedObjects": 0, "errorCount": 1 } }
      

      Attachments

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

        Activity

          People

            Hussain.Towaileb Hussain Towaileb
            umang.agrawal Umang
            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