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
The gRPC-Web client decodes this into an error object with details of 'emoji error: %F0%9F%98%80'. The NodeJS client decodes it into 'emoji error: \u{0001F600}' ('emoji error: 😀')
A brief inspection of the code seems to suggest this needs to be done if the header comes from either the trailers or the XHR response:
The gRPC specification states "Status-Message is [...] physically encoded as UTF-8 followed by percent-encoding." However, the gRPC-Web client does not percent decode the error detail. The official NodeJS gRPC client does.
Example response payload:
The gRPC-Web client decodes this into an error object with details of
'emoji error: %F0%9F%98%80'
. The NodeJS client decodes it into'emoji error: \u{0001F600}'
('emoji error: 😀'
)A brief inspection of the code seems to suggest this needs to be done if the header comes from either the trailers or the XHR response:
grpc-web/javascript/net/grpc/web/grpcwebclientreadablestream.js
Line 201 in def314a
The text was updated successfully, but these errors were encountered: