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

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

        Activity

          arun.vijayraghavan Arun Vijayraghavan (Inactive) created issue -
          arun.vijayraghavan Arun Vijayraghavan (Inactive) made changes -
          Field Original Value New Value
          Assignee Brett Lawson [ brett19 ] Charles Dixon [ charles.dixon ]

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

          arun.vijayraghavan Arun Vijayraghavan (Inactive) added a comment - Assigned to Charles Dixon  as he is aware of this issue.
          charles.dixon Charles Dixon made changes -
          Status New [ 10003 ] Open [ 1 ]
          charles.dixon Charles Dixon made changes -
          Fix Version/s 2.3.0 [ 17235 ]

          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.
          charles.dixon Charles Dixon made changes -
          Status Open [ 1 ] In Progress [ 3 ]

          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 (Inactive) 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.

          Thanks Charles Dixon so thats a fix in our SDK ?

           

          Never mind saw the Gerrit PR

          arun.vijayraghavan Arun Vijayraghavan (Inactive) added a comment - - edited Thanks Charles Dixon  so thats a fix in our SDK ?   Never mind saw the Gerrit PR
          charles.dixon Charles Dixon made changes -
          Fix Version/s core-10.0.0 [ 17261 ]
          Fix Version/s core-9.1.5 [ 17641 ]
          Fix Version/s 2.3.0 [ 17235 ]
          charles.dixon Charles Dixon made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]

          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
          ingenthr Matt Ingenthron made changes -
          Workflow Couchbase SDK Workflow [ 204481 ] Couchbase SDK Workflow with Review [ 252151 ]

          People

            charles.dixon Charles Dixon
            arun.vijayraghavan Arun Vijayraghavan (Inactive)
            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