-
Notifications
You must be signed in to change notification settings - Fork 666
Error has inappropriate type with Rich Error Model #2120
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
Comments
You did not read the grpc.io page that you linked carefully enough. The "Standard error model" section says
The "error status code" and "optional error message" in that description correspond to the The "Richer error model" is an extension on top of that that is not directly part of the gRPC protocol. In particular, in that section it says
Specifically, the |
And why in Node implementation Also at grpc.io
|
It looks like the name The open issue referenced in that quote is the one I mentioned in my comment, #184. |
Thanks, I'm closing this issue then. |
Problem description
In grpc.io there is recomendation to use google rich error model
This model has Status message:
So error always has
code
andmessage
plus optional array ofdetails
.In this package we have
sendError
method hereYou can see that error does not have
message
field, onlycode
anddetails
.First I want to ask is it correct and why
message
value defines intodetails
and then iferror.details
exists and it is a string it overridesdetails
again?Second, I want to fix this and send 3 fields correctly, I can create a PR, but first want to pre-approve this approach.
The idea is always send
code
andmessage
plus optional array of anydetails
.The text was updated successfully, but these errors were encountered: