Replies: 1 comment
-
I will answer to my own question (for future readers).
So the working code is proto < ./my.proto
defaults: true
keepCase: true
bytes: String
{{
exports.data = new Buffer('plop azerty', 'utf-8').toString('base64');
}}
###
GRPC {{server}}/{{service}}/Store
{
"key": "tmp",
"payload_binary": "{{data}}"
}
?? status == 0
###
GRPC {{server}}/{{service}}/Find
{
"key": "tmp"
}
?? status == 0
?? body payload_binary == {{data}} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Thanks for your wonderful tool (documentation and samples). I discovered it last week-end when I was looking for a gRPC client (for demo & basic test). It already replaces the RestClient extension in my VS Code for HTTP(s) requests.
How to send (or define) a
bytes
field via gRPC?e.g. a
.proto
likesFor all my tries, the server received an empty
bytes
array.e.g. a failing try
An auxiliary question: can I test the response for
find
?PS: I'm not a js dev, so I don't understand fully the subtilities between the format Buffer, ArrayU8Int, String,... to represent the bytes in js and json.
Beta Was this translation helpful? Give feedback.
All reactions