[ ] Regression
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
In server side streaming response, no error response to the client is made.
Even if throwing an exception in the controller as follows, gRPC error will not be returned as a response to the client side.
@GrpcMethod('SampleService', 'SampleStreamMethod')
sampleStream(req: SampleRequest): Observable<Sample> {
throw new RpcException({ code: grpc.status.UNKNOWN, message: 'sample error' });
// some observable response.
}
Expected behavior
In server-side streaming, handling Observable errors appropriately and returning it as a response to the client.
I'm submitting a...
Current behavior
In server side streaming response, no error response to the client is made.
Even if throwing an exception in the controller as follows, gRPC error will not be returned as a response to the client side.
Expected behavior
In server-side streaming, handling Observable errors appropriately and returning it as a response to the client.
The following part
https://github.com/nestjs/nest/blob/5.6.0/packages/microservices/server/server-grpc.ts#L134-L143
I think that it should be modified like this.
However, I am not familiar with the gPRC protocol, so I do not know exactly.
Environment