Fix JSON serialization of errors to include the cause

Description

We previously hijacked the JSON serialization of errors for the stringification of errors. This however causes external actors serializing our errors to lose the cause reason which should not occur.

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

CB robot November 23, 2021 at 11:22 AM

Build couchbase-server-7.1.0-1767 contains gocbcore commit c7d8324 with commit message:
https://couchbasecloud.atlassian.net/browse/GOCBC-1040#icft=GOCBC-1040: Include error causes when doing serialization

CB robot November 23, 2021 at 11:21 AM

Build couchbase-server-7.1.0-1767 contains gocb commit c59f1d8 with commit message:
https://couchbasecloud.atlassian.net/browse/GOCBC-1040#icft=GOCBC-1040: Include error causes when doing serialization

CB robot June 10, 2021 at 10:01 AM

Build sync_gateway-3.0.0-225 contains gocbcore commit c7d8324 with commit message:
https://couchbasecloud.atlassian.net/browse/GOCBC-1040#icft=GOCBC-1040: Include error causes when doing serialization

CB robot June 10, 2021 at 10:01 AM

Build sync_gateway-3.0.0-225 contains gocb commit c59f1d8 with commit message:
https://couchbasecloud.atlassian.net/browse/GOCBC-1040#icft=GOCBC-1040: Include error causes when doing serialization

CB robot March 17, 2021 at 11:21 AM

Build couchbase-server-7.0.0-4715 contains gocbcore commit c7d8324 with commit message:
https://couchbasecloud.atlassian.net/browse/GOCBC-1040#icft=GOCBC-1040: Include error causes when doing serialization

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

Details

Assignee

Reporter

Story Points

Components

Fix versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created January 18, 2021 at 10:57 PM
Updated November 23, 2021 at 11:22 AM
Resolved February 11, 2021 at 8:06 PM
Instabug