grpc-node icon indicating copy to clipboard operation
grpc-node copied to clipboard

[Question] how to catch Integer overflow in grpc server ?

Open SunshowerC opened this issue 6 years ago • 1 comments

I defined a field uint32 userId in pb3,so userId should be between 0 and 4294967295.

But when grpc client pass an overflow-int like 4294967297 to grpc server, the server received userId: 1 without any exception.

How to catch something like this?

A solution to solve this will be greatly appreciated!

SunshowerC avatar Jul 09 '19 06:07 SunshowerC

Now it seems to throw rpc error: code = Internal desc = grpc: failed to unmarshal the received message proto: integer overflow but idk where does it get from in my code o_o

smbrine avatar Mar 08 '24 20:03 smbrine