What is the best way to handle errors in gRPC-Web? #1520
Unanswered
cathaysia
asked this question in
Q&A - General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We use
grpc-webfor our project. We are debating how to handle errors.1. Native gRPC Status
Keep
.protofiles clean. Use standard gRPC status codes. Use error messages in trailers. The frontend catches errors in theerrobject.2. Custom Envelope
Wrap every response in the
.protofile.Example:
Questions
grpc-web?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions