Hello,
I'm new to gRPC and Python and apologize for what could be a simple
solution that I don't realize.
I am building a microservice, call it SERVICER, that is the servicer of
gRPC calls. Other microservices are going to use the gRPC stub.
I wanted to have just one repository for SERVICER t
Hello,
I am working in Python.
I have a proto file in PACKAGE_A that I am trying to import into
PACKAGE_B. Package_A is installed via pip install, so it live in the
*site_packages* of the venv.
Package_B's proto file includes the *import "package_a/package_a.proto"* at
the top of the file.
Is there a built in validator to ensure that the message passed to a method
is the correct one?
For example:
*message GetAddressInfoRequest {*
*string street = 1;*
*string zip = 2;*
*};*
*rpc get_address_info(GetAddressInfoRequest) returns (GetAddressResult);*
I would like the functio
se message in the proto, so "don't do that." Instead, create
> a new function with the new signature that you want.
>
> On Mon, May 1, 2023 at 7:30 AM Brad Post wrote:
>
>> Is there a built in validator to ensure that the message passed to a
>> m
Ok, thanks for the clarification.
On Thu, 4 May 2023 at 08:29, Eric Anderson wrote:
> On Thu, May 4, 2023 at 7:29 AM Brad Post wrote:
>
>> Okay thanks, but then what is the recommended way of "defending" bad
>> requests.
>>
>
> Ignore this case and
I just want to make sure I understand the spec for gRPC and HTTP gateway
correctly as I was trying to do have the resource ID replaced in a sub
message. So this call:
- HTTP: `PATCH /v1/keys/1234`
- gRPC: `patch_key(Data:UpdateKeyRequestData(UpdateKeyId: "123"))`
Is this possible? As seems tha
Hello,
Trying to get some clarification on the HTTP to gRPC mapping as I would
like to do the following mapping when sending in resource ids:
- HTTP: PATCH /v1/keys/1234
- gRPC: patch_key(Data: UpdateKeyRequestData(UpdateKeyId: `1234`))
But seems that due to the HTTP body rules and how gRPC is