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

REST API returning "invalid" JSON on some environments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • 7.0.0
    • 6.0.0
    • query
    • Windows
    • Untriaged
    • Windows 64-bit
    • Unknown

    Description

      /query/service endpoint returns "invalid" JSON on production, but exactly same query returns correct JSON on my machine.

      The "invalid" JSON looks like:

      {
        "requestID": "...",
        "signature": "{\"foo\": \"json\"}",
        ....
      }
      

      when the valid response on my machine looks like this:

      {
        "requestID": "...",
        "signature": {"foo": "json"},
        ....
      }
      

      Both computers are Windows and running Couchbase 6.0.0 build 1693.

      This happens when I try to execute an encoded_plan trough the REST API, my request looks like:

      {"args":["args","here"],"prepared":"id here","encoded_plan":"encoded plan here","encoding":"UTF-8","creds":[{"pass":"...","user":"..."}],"timeout":"75s","scan_consistency":"not_bounded"}
      

      Attachments

        Issue Links

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

          Activity

            People

              pierre.regazzoni Pierre Regazzoni
              mp Mico Piira
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty