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

Chaincode-to-Client error handling #3154

Open
4 tasks
mbwhite opened this issue Jan 5, 2022 · 0 comments
Open
4 tasks

Chaincode-to-Client error handling #3154

mbwhite opened this issue Jan 5, 2022 · 0 comments

Comments

@mbwhite
Copy link
Member

mbwhite commented Jan 5, 2022

Summary:

It is hard for client applications to distinguish between different classes of errors (communication, Fabric Peer/Orderer issues, Application Contract errors). String parsing is in part a solution today - this is not reliable enough. Similarly, it is not easy for contracts to issue application-level errors.

The problem is that error information beyond the string message doesn’t flow back properly. This is partly because nobody has ever decided on the right pattern to follow, partly because the different chaincode and client API language implementations tend to have subtle differences in behaviour, and partly because the Fabric internals inhibit the flow of good error information back to the client.

  • Confirm what the flow back from the chaincode is to the peer.
  • What is the route through the peer/orderer for this structure for both 'evaluate/submit' transactions
  • How this application error is then surfaced back to client applications
  • How is the application error 'injected' within the chaincode
@denyeart denyeart changed the title Chaincode-to-Client API integrity Chaincode-to-Client error handling Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant