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

Enhance SDK error message to show the right error message so that the user can easily debug and solve issues.

    XMLWordPrintable

Details

    • 1

    Description

      In reference to the forum post 

      The user was getting "client internal error" which is hard to debug as to why the error occurred. 

      In this case the user was using a N1QL query to JOIN on two buckets out of which user did not have enough access set up on one of the buckets.

       

      It would have been easy if the error message was something like 'unauthorized access on bucket <bucket-name>' something along those lines.

       

       

      Attachments

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

        Activity

          Assigned to Charles Dixon as he is aware of this issue.

          arun.vijayraghavan Arun Vijayraghavan added a comment - Assigned to Charles Dixon  as he is aware of this issue.

          Unsure how the user is getting a client internal error but we're not always returning errors correctly from the n1ql response body.

          charles.dixon Charles Dixon added a comment - Unsure how the user is getting a client internal error but we're not always returning errors correctly from the n1ql response body.
          arun.vijayraghavan Arun Vijayraghavan added a comment - - edited

          Charles Dixon Yeah so this ticket is a starting point to debug, if it needs to be a change in the N1QL please open a ticket there and link it to this one.

          arun.vijayraghavan Arun Vijayraghavan added a comment - - edited Charles Dixon  Yeah so this ticket is a starting point to debug, if it needs to be a change in the N1QL please open a ticket there and link it to this one.

          I identified the issue and have opened a review with the fix.

          charles.dixon Charles Dixon added a comment - I identified the issue and have opened a review with the fix.
          arun.vijayraghavan Arun Vijayraghavan added a comment - - edited

          Thanks Charles Dixon so thats a fix in our SDK ?

           

          Never mind saw the Gerrit PR

          arun.vijayraghavan Arun Vijayraghavan added a comment - - edited Thanks Charles Dixon  so thats a fix in our SDK ?   Never mind saw the Gerrit PR

          Build sync_gateway-3.0.0-273 contains gocbcore commit 938faff with commit message:
          GOCBC-1127: Improve n1ql error handling

          build-team Couchbase Build Team added a comment - Build sync_gateway-3.0.0-273 contains gocbcore commit 938faff with commit message: GOCBC-1127 : Improve n1ql error handling

          Build couchbase-server-7.1.0-2094 contains gocbcore commit de088f1 with commit message:
          GOCBC-1127: Improve n1ql error handling

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.1.0-2094 contains gocbcore commit de088f1 with commit message: GOCBC-1127 : Improve n1ql error handling

          People

            charles.dixon Charles Dixon
            arun.vijayraghavan Arun Vijayraghavan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty