grpc / grpc/grpc-web

Decoding grpc-status-details-bin ?

Open
#399 34 comments 12 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
9.3k
Forks
802
Avg merge
1d 7h
Merged PRs (30d)
5

Description

Hi there

Server side, we send an error withDetails (in GO) :
```
st2 := status.New(codes.Aborted, "failed to map")
st2.WithDetails(&Error{
Code: 1,
Message: "error",
})
```

Client side (js / typescript), we need to retrieve these details somehow but all we receive is a serialized string (`trailers.get('grpc-status-details-bin')` ) .. how can we decode it ?

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.