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
I have not been able to find out a way to recover the details included in a server response status message, it seems that they are not included in grpc.io Status class and thus are not accessible from the StatusException thrown on server errors.
Is there a way to recover and access the details field from the client or using the details field is discouraged.
We were planning on using the recommended payload list from here: https://cloud.google.com/apis/design/errors#error_payloads but if the information can not be retrieved from the client it does not make sense to send.
For context we are using grpc-java 1.66 + grpc-kotlin 1.4.1 but the models are in the grpc-java side.
The text was updated successfully, but these errors were encountered:
There is a description field in Status and this is what is set by the gRPC server to add error details (example). Is your client not seeing this field set?
As I understand over the wire what it is sent is this model that include the details field with extra information about the error cause.
I was hoping to have access to that information from the client side, as far as I can tell that detail field is not included in the description as expected but is not stored in the io.grpc.Status object.
But after some more exploring it seems that details should be present in the metadata part of the exception and they were not there due to an unrelated bug.
I have not been able to find out a way to recover the details included in a server response status message, it seems that they are not included in grpc.io Status class and thus are not accessible from the StatusException thrown on server errors.
Is there a way to recover and access the details field from the client or using the details field is discouraged.
We were planning on using the recommended payload list from here: https://cloud.google.com/apis/design/errors#error_payloads but if the information can not be retrieved from the client it does not make sense to send.
For context we are using grpc-java 1.66 + grpc-kotlin 1.4.1 but the models are in the grpc-java side.
The text was updated successfully, but these errors were encountered: