No support for err status with details
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 716
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 10
Description
There doesn't seem to be any support for deserialising error status details, as implemented [in the go grpc library](https://github.com/google/go-genproto/blob/master/googleapis/rpc/status/status.pb.go#L92). The `StatusObject` type here only supports [details as a string](https://github.com/grpc/grpc-node/blob/fcba0c101c2306461b8457ca5fd831a8b94bc723/packages/grpc-native-core/index.d.ts#L524).
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 err `goog.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?
Contributor guide
Assessment
This issue has not been assessed yet.