-
Notifications
You must be signed in to change notification settings - Fork 657
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
No support for err status with details #184
Comments
This has been an issue for me to. The stream seems to be a UTF-8 sequence of characters but it would be better to have a way to get the string representation of the details. Also, why not including them in the error's message? |
I've run into this as well. In the spec, details is a google.protobuf.Any type: https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto#L91, but here it is a human-readable string. |
That |
Initially was running into Can see the approach in this package: https://github.com/stackpath/node-grpc-error-details. It's working for us deserializing |
There doesn't seem to be any support for deserialising error status details, as implemented in the go grpc library. The
StatusObject
type here only supports details as a string.The status details binary can be found in the metadata
err.metadata.get('grpc-status-details-bin')
. I've tried deserialising this as the expected protobuf message with no success, receiving the errgoog.asserts.AssertionError Failure: Decoder hit an error
. Presumably there is more to the binary.I am curious as to why there is nothing around retrieving the status details in this libraries API if it is a standard feature of grpc?
The text was updated successfully, but these errors were encountered: