grpc-node
grpc-node copied to clipboard
[Question] how to catch Integer overflow in grpc server ?
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!
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