Skip to content

Include response payload in gRPC error responses #337

Open
@bestbeforetoday

Description

@bestbeforetoday

As a blockchain application developer
I want my client application to receive payloads returned by chaincode error responses
So that I can pass metadata from the chaincode back to the client in the event of a failure

Currently only the error response message text is passed back as part of the gRPC status error message. The Gateway does associate ErrorDetails with this gRPC status error, so perhaps these details could be extended (or additional error metadata added) to include the payload.

It should be noted that using the error payload is not a very common pattern and is not supported by some of the older SDKs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clientRelates to Fabric Gateway clientenhancementNew feature or requestserverRelates to Gateway peer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions