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

jsevaluator endpoint returns invalid json

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 7.1.0
    • 7.1.0
    • js-evaluator
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      Create a new function

      $ curl -s -k -X POST http://localhost:8093/evaluator/v1/libraries/n1ql -u Administrator:password -H 'content-type: application/json' -d 'function execute_prepare() { var query = execute lyon_airport using ["lyon"]; var acc = []; for (const row of query) {return row; } return 1;}'
      {status: "OK"}
      

      {status: "OK"}

      is an invalid JSON, we should be returning

      {"status": "OK"}

      Attachments

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

        Activity

          People

            marco.greco Marco Greco (Inactive)
            marco.greco Marco Greco (Inactive)
            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