MS Edge: Getting incomplete data on READY_STATE_CHANGE
Author: iCovarrubiasCreated Mar 24, 2020Updated Jun 19, 2026
Facing a weird issue with Edge, looks like we are getting incomplete responses when they are too long. I was able to track the issue all the way here:
e.g. I have a response that's around 13K long. The length bytes inside the grpc.web.GrpcWebStreamParser module indicate that the total response should have a length of 13352, however the responseText length we get in the READY_STATE_CHANGE callback is ~4K. This results in the message not being correctly parsed.
Seems that this is only happening in the non-chromium Edge versions <= 18.
Although this seems to be a bug in Edge and not grpc-web itself, I'm posting here to check if anyone else has faced this issue and there's a known fix for this.
Source: grpc/grpc-web