You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.
When returning an error message via Status, we can only provide Code and message. There is currently no method provided to add details to it as far as I know.
It would be awesome to provide additional metadata to provide the client with additional contexts of the error.
The text was updated successfully, but these errors were encountered:
Did you see the details field of Status? It is for that. The convention is to put a protobuf message in it. I'm not sure if grpc offers a standard proto message type for it though.
It's true there isn't currently a way to add to the details method. I'm not especially familiar with the grpc.Status message type, but other grpc libraries seem to offer encoding one in the details of a Status. That's what this field is supposedly for... We haven't figured out the right way to add them yet, it seems, but I don't really know what that would be, either.
When returning an error message via
Status
, we can only provideCode
and message. There is currently no method provided to add details to it as far as I know.It would be awesome to provide additional metadata to provide the client with additional contexts of the error.
The text was updated successfully, but these errors were encountered: