Closed allwicher closed 1 year ago
Hi @allwicher, the JSON format for bytes is a base64 encoded string.
bytes | base64 string | "YWJjMTIzIT8kKiYoKSctPUB+" | JSON value will be the data encoded as a string using standard base64 encoding with paddings. Either standard or URL-safe base64 encoding with/without paddings are accepted. |
---|
When I call a service which expects a request with the parameter 'Buffer' of the type 'bytes', I get an error
error getting request data: bad input: expecting string ; instead got {
When I use the same message in BloomRPC, the request is accepted and processed by the service.
Example proto message definition:
gprcurl command: