connectrpc / connectrpc.com

Docs, governance, and RFCs for Connect: Protobuf RPC that works.
https://connectrpc.com
Apache License 2.0
15 stars 18 forks source link

spec: should include more details on how invalid requests and responses should be handled #169

Open jhump opened 2 months ago

jhump commented 2 months ago

The spec describes valid requests and a valid responses, but, aside from how to handle an invalid content-type for streams or unsupported message codec for unary, it does not indicate what actions a Connect server or client should take in the face of an invalid request or response.

On the server side:

There are similar concerns with how a client should handle an invalid response.

The spec should be expanded to provide more clear guidance on expected behavior in the face of these kinds of errors.

akshayjshah commented 2 months ago

All good points :) It'd be great for the spec to match the conformance tests on all of these points.