Stanislav Vodetskyi
07/14/2025, 7:25 PMbytes
fields for request/repsonse pairs? Since both request and response are specified via json, you have to pass it as string, but I remember running into issues with such conversion before, where if the bytes is not a valid utf-8 string it would fail. Could be wrong?Stanislav Vodetskyi
07/14/2025, 9:15 PMpact_ffi::plugins: Contents is not a valid JSON - control character (\u0000-\u001F) found while parsing a string at line 8 column 27
so it seems like we need to escape this somehow, but I'm not sure howrholshausen
07/14/2025, 11:19 PMrholshausen
07/14/2025, 11:49 PMbytes
is an alias for the google.protobuf.BytesValue
message type.rholshausen
07/15/2025, 12:03 AMgoogle.protobuf.BytesValue
type, but expects a string as input. I guess there would be 2 ways to do it.
Easiest is to try escape the input string using JSON string escape codes.
The other is to update the plugin to support an array of byte values as input, or a BASE64 encoded string.rholshausen
07/15/2025, 12:05 AMrholshausen
07/15/2025, 12:05 AMStanislav Vodetskyi
07/15/2025, 2:26 AMStanislav Vodetskyi
07/15/2025, 2:27 AMStanislav Vodetskyi
07/15/2025, 2:28 AMrholshausen
07/15/2025, 3:45 AMStanislav Vodetskyi
07/15/2025, 5:54 PM