Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1998

Invalid Encoding parameter causes HTTP 400 bad request in Query

    XMLWordPrintable

Details

    • 1

    Description

      Encoding enumeration only has one value Encoding.Utf8 which is ToString()'d and sent to the server as "Utf8"; the server fails with HTTP 400 Bad Request because the expected value for Encoding is "UTF-8":

      HTTP/1.1 400 Bad Request
      Content-Length: 259
      Content-Type: application/json; version=2.0.0-N1QL
      Date: Thu, 20 Jun 2019 19:49:21 GMT

      {
      "requestID": "a9ecd94c-0271-41b3-8e0d-8d60888bebf4",
      "errors": [

      Unknown macro: {"code"}

      ],
      "status": "fatal",
      "metrics":

      Unknown macro: {"elapsedTime"}

      }

      Attachments

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

        Activity

          People

            jmorris Jeff Morris
            jmorris Jeff Morris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty