question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

incomplete response when using mode=grpcwebtext

See original GitHub issue

When 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:open
  • Created 3 years ago
  • Reactions:14
  • Comments:17

github_iconTop GitHub Comments

1reaction
LukeLaScalacommented, Sep 20, 2021

Specifying http:// didn’t resolve the issue for me. Are there any other workarounds at the moment? This is a super frustrating bug.

1reaction
remvstcommented, Dec 14, 2020

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:

// Works
const client = new VideoClient('http://localhost:9000');

// Doesn't work
const client = new VideoClient('localhost:9000');

Would it make sense to add some assertion to the constructor to avoid these kinds of issues?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found