Dispatch error grpc: error while marshaling: string field contains invalid UTF-8

Hi All

We are using TYK v4.3.4 with custom middle-ware configured in grpc. We are getting a dispatch error, following are tyk debug logs:

level=debug msg=“CoProcess Request, HookType: CustomKeyCheck” api_id=“test” api_name=“test” mw=CoProcessMiddleware org_id=default origin=xx.xxx.54.223 path=“/test”

level=error msg=“Dispatch error” api_id=“test” api_name=“test” error=“rpc error: code = Internal desc = grpc: error while marshaling: string field contains invalid UTF-8” mw=CoProcessMiddleware org_id=default origin=xx.xxx.54.223 path=“/test”

Can anyone please suggest what is this error about, is this at tyk side or something at grpc middleware.

Thanks

I may be wrong but I assume this topic Tyk gateway not supporting non UTF-8 characters is related to the same issue.