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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.4
    • Component/s: library
    • Labels:
      None
    • Story Points:
      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

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

          Activity

          Hide
          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.

          Show
          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.
          Hide
          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

          Show
          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
          Hide
          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

          Show
          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
          Hide
          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

          Show
          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

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