If the server response includes a malformed or incomplete error JSON, the client will report an unknown error to the application layer. In particular, this happens if the code property is invalid or missing or if there are any type mismatches (for example, if the response includes something other than a string for the message property).
This contrasts with the spec (in the Unary-Response section):
When reading data from the wire, client implementations must use the HTTP-to-Connect mapping to infer a Connect error code if Bare-Message is missing or malformed.
If the server response includes a malformed or incomplete error JSON, the client will report an
unknown
error to the application layer. In particular, this happens if thecode
property is invalid or missing or if there are any type mismatches (for example, if the response includes something other than a string for themessage
property).This contrasts with the spec (in the Unary-Response section):
Found by conformance tests in v1.15.0.