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

https://github.com/hyperledger/fabric-protos-go-apiv2/blob/main/google/rpc/status.pb.go needed? #239

Open
denyeart opened this issue Sep 13, 2024 · 1 comment

Comments

@denyeart
Copy link
Contributor

denyeart commented Sep 13, 2024

I've noticed https://github.com/hyperledger/fabric-protos-go-apiv2/blob/main/google/rpc/status.pb.go is new relative to the prior fabric-protos-go. Does anybody know the origin of this new message? Is it used anywhere?

@bestbeforetoday @jt-nti

@bestbeforetoday
Copy link
Member

bestbeforetoday commented Sep 13, 2024

Errors from the Gateway service get returned to the client as gRPC status errors with attached error details, following the Google richer error model for gRPC. See the gateway proto definition.

Mostly this is hidden by the gRPC API but there are a few places where it leaks out and we need to interact with the Status proto directly in the Gateway client code, either for testing purposes or to extract information into a more consumable form for users of the client API:

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

2 participants