Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-925

Can't get errors if query responds with status code 200

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.4
    • library
    • None
    • 1

    Description

      If the query service responds to a request with a 200 then we return a request and ignore any errors. We need to way for users to access any errors that are returned alongside a response. This is easy to repro by doing a n1ql INSERT against an existing key.

      Attachments

        For Gerrit Dashboard: GOCBC-925
        # Subject Branch Project Status CR V

        Activity

          There's no good way to bubble this up, errors are returned after results in the payload so we can't return the error in the Query call. We may need to hijack the result.Err() call to expose this.

          charles.dixon Charles Dixon added a comment - There's no good way to bubble this up, errors are returned after results in the payload so we can't return the error in the Query call. We may need to hijack the result.Err() call to expose this.

          Build couchbase-server-7.0.0-2677 contains gocbcore commit 02b988f with commit message:
          GOCBC-925: Use n1ql Err to return any extra errors from the result

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-2677 contains gocbcore commit 02b988f with commit message: GOCBC-925 : Use n1ql Err to return any extra errors from the result

          Build couchbase-server-6.6.0-7892 contains gocbcore commit 02b988f with commit message:
          GOCBC-925: Use n1ql Err to return any extra errors from the result

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.6.0-7892 contains gocbcore commit 02b988f with commit message: GOCBC-925 : Use n1ql Err to return any extra errors from the result

          Build sync_gateway-3.0.0-52 contains gocbcore commit 02b988f with commit message:
          GOCBC-925: Use n1ql Err to return any extra errors from the result

          build-team Couchbase Build Team added a comment - Build sync_gateway-3.0.0-52 contains gocbcore commit 02b988f with commit message: GOCBC-925 : Use n1ql Err to return any extra errors from the result

          People

            charles.dixon Charles Dixon
            charles.dixon Charles Dixon
            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