Issue
I am using grpc for message passing and am testing a simple server and client. When my message size goes over the limit, I get this error.
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with
(StatusCode.INVALID_ARGUMENT,
Received message larger than max (7309898 vs. 4194304))>
How do I increase the message size on the server and client side?
Solution
Changing the message_length
for both send and receive will do the trick.
channel = grpc.insecure_channel(
'localhost:50051',
options=[
('grpc.max_send_message_length', MAX_MESSAGE_LENGTH),
('grpc.max_receive_message_length', MAX_MESSAGE_LENGTH),
],
)
Answered By - Dumbo Answer Checked By - Marilyn (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.