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

          jmorris Jeff Morris created issue -
          jmorris Jeff Morris made changes -
          Field Original Value New Value
          Status New [ 10003 ] Open [ 1 ]
          jmorris Jeff Morris made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          jmorris Jeff Morris made changes -
          Actual Start 2019-06-20 14:56 (issue has been started)
          jmorris Jeff Morris made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          jmorris Jeff Morris made changes -
          Actual End 2019-06-20 16:27 (issue has been resolved)
          jmorris Jeff Morris made changes -
          Affects Version/s 2.7.8 [ 16147 ]
          jmorris Jeff Morris made changes -
          Fix Version/s 2.7.9 [ 16184 ]
          jmorris Jeff Morris added a comment -

          Patched on both master (3.0) and release27 branches.

          jmorris Jeff Morris added a comment - Patched on both master (3.0) and release27 branches.
          jmorris Jeff Morris made changes -
          Labels dotnet-sdk-3.0
          brett19 Brett Lawson made changes -
          Story Points 1

          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