diff --git a/packages/connect/src/protocol-grpc/transport.ts b/packages/connect/src/protocol-grpc/transport.ts index 689bdf5c8..57d1662f1 100644 --- a/packages/connect/src/protocol-grpc/transport.ts +++ b/packages/connect/src/protocol-grpc/transport.ts @@ -147,6 +147,10 @@ export function createTransport(opt: CommonTransportOptions): Transport { ); validateTrailer(uRes.trailer, uRes.header); if (message === undefined) { + // Trailers only response + if (headerError) { + throw headerError; + } throw new ConnectError( "protocol error: missing output message for unary method", uRes.trailer.has(headerGrpcStatus)