Support for charset other than UTF-8 in grpc plugin

533 views
Skip to first unread message

Mohit Kumar

unread,
Sep 18, 2023, 3:36:07 AM9/18/23
to grpc.io
Hi All

We are using grpc as a plugin for opensource gateway (tyk) where we are facing one issue while dispatching the request to grpc server. Error is as following:

rpc error: code = Internal desc = grpc: error while marshaling: string field contains invalid UTF-8

By seeing the error it looks like grpc plugin is not supporting char set other than UTF-8.
Is there any configuration in grpc so that we can add support for special characters other than UTF-8.


Thanks

Tobias Krueger

unread,
Sep 18, 2023, 3:57:40 AM9/18/23
to grpc.io
Hi Mohit,

are you sure that you are not mixing up a field index?
I have seen this very error when one side was using a repeated field and the other side a string field on the same index.

Best

Mohit Kumar

unread,
Sep 18, 2023, 10:38:57 AM9/18/23
to grpc.io
Hi @Tobias

We are using the same protobufs as recommended here https://github.com/TykTechnologies/tyk/tree/master/coprocess
We have not defined any repeated field ourselves.

Reply all
Reply to author
Forward
0 new messages