client: Detect invalid response message format #661
Labels
client
Issue related to the client
enhancement
Improving existing functionality
I4
No visible changes
S3
Minimally significant
U4
Nothing urgent
Is your feature request related to a problem? Please describe.
currently, when
Client
receives protobuf message incompatible with the response structure, it returnsinvalid response signature
. This happens because in this case proto decoder:Describe the solution you'd like
when
Client
receives response message having known fields with broken format (e.g. wrong type), return clear error on thisnote: some fields can be just unsupported (old client, new server). I did not check is it easy to distinguish broken fields from unsupported ones or not, so be careful: unsupported fields must not be denied in general for forward compatibility
Describe alternatives you've considered
do nothing. Technically, there is definitely no valid
response signature
. But nobody will know what the actual problem isAdditional context
Client
testing. Following snippet can also be useful:The text was updated successfully, but these errors were encountered: