Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gateway error scenarios #178

Closed
andrew-coleman opened this issue Aug 24, 2021 · 2 comments
Closed

Gateway error scenarios #178

andrew-coleman opened this issue Aug 24, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@andrew-coleman
Copy link
Member

Add extra scenario tests to the suite that specifically test the error messages returned from Fabric Gateway.
Ensure relevant messages are easily accessible and contain appropriate diagnostic information.
Ensure consistency across the three SDKs.

@bestbeforetoday
Copy link
Member

For a production-ready client application, we need to be able to distinguish whether a given error is:

  1. a connection failure that can be retried
  2. an unrecoverable failure (like bad credentials, channel name, chaincode name or transaction name)
  3. a valid application-level error from chaincode (like querying an asset that doesn’t exist)

We might be able to achieve this with good use of gRPC status codes on errors returned from the Gateway peer. We will need to document status codes we use and their meaning. This documentation might need to include code examples demonstrating how to capture errors / exceptions and examine the status codes.

@denyeart
Copy link
Contributor

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants