grpc / grpc/grpc-web

Provide more informative messages on response parse errors.

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

Description

Currently, when an exception happens during response parsing or handling,

https://github.com/grpc/grpc-web/blob/master/javascript/net/grpc/web/grpcwebclientreadablestream.js#L168
https://github.com/grpc/grpc-web/blob/master/javascript/net/grpc/web/grpcwebclientreadablestream.js#L186
ti
grpc-web simply throws away the Error object and returns a generic hard-coded string, such as 'Error in response deserializer function' . This behavior makes it rather difficult to debug the problem.
It should include the exception description in the error, or at least log the error in the console.

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.