Provide more informative messages on response parse errors.
Open
- 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
Assessment
This issue has not been assessed yet.