-
Notifications
You must be signed in to change notification settings - Fork 8
Serialization of non-ascii characters may result in an incomplete payload being sent across the wire #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
bug
Something isn't working
Comments
As can be seen, the message is truncated at line
|
Logged grpc/grpc-node#2079 with the grpc node folks for additional feedback. |
Fix is to no allocate the buffer based on string length and instead call Buffer.from(string) which will produce the expected buffer. |
rlubke
added a commit
that referenced
this issue
Apr 5, 2022
…mplete payload being sent across the wire
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When performing a put with a value having a 49308 bytes, appears to be truncated. The client raises "Error: 2 UNKNOWN:".
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
An error should not be raised.
The text was updated successfully, but these errors were encountered: