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

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.

 

 

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

CB robot January 19, 2022 at 8:30 AM

Build couchbase-server-7.1.0-2094 contains gocbcore commit de088f1 with commit message:
https://couchbasecloud.atlassian.net/browse/GOCBC-1127#icft=GOCBC-1127: Improve n1ql error handling

CB robot July 8, 2021 at 5:41 PM

Build sync_gateway-3.0.0-273 contains gocbcore commit 938faff with commit message:
https://couchbasecloud.atlassian.net/browse/GOCBC-1127#icft=GOCBC-1127: Improve n1ql error handling

Arun Vijayraghavan June 15, 2021 at 4:54 PM
Edited

Thanks  so thats a fix in our SDK ?

 

Never mind saw the Gerrit PR slightly smiling face

Charles Dixon June 15, 2021 at 4:53 PM

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

Arun Vijayraghavan June 15, 2021 at 4:51 PM
Edited

 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.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Story Points

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created June 14, 2021 at 8:56 PM
Updated January 19, 2022 at 8:30 AM
Resolved June 15, 2021 at 5:45 PM
Instabug