incomplete response when using mode=grpcwebtext
See original GitHub issueWhen using mode=grpcwebtext for client configuration, responses are giving an error:
{code: StatusCode.UNKNOWN, message: 'Incomplete response'}
The response is received by the client, but is truncated (e.g. string should be ‘hello world’ but is ‘hello’). This error does not occur when using mode=grpcweb. I’m unsure if additional configuration is needed to use grpcwebtext, but following the grpc-web examples it does not seem like it.
It looks like this may be related to https://github.com/grpc/grpc-web/pull/903 and issue https://github.com/grpc/grpc-web/issues/881
Issue Analytics
- State:
- Created 3 years ago
- Reactions:14
- Comments:17
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Specifying
http://
didn’t resolve the issue for me. Are there any other workarounds at the moment? This is a super frustrating bug.Okay seems like I was able to fix my issue. In case anyone is experiencing something similar, make sure you do specify the HTTP protocol in your client:
Would it make sense to add some assertion to the constructor to avoid these kinds of issues?