nice-grpc icon indicating copy to clipboard operation
nice-grpc copied to clipboard

Problem with grpc-status, grpc-message

Open ghost opened this issue 1 year ago • 1 comments

My server uses tonic, I have a gRPC call where the server streams some bytes to the client (that is using nice-grpc-web). However I'm getting the following error in my browser console:

ClientError: /images.Images/GetNationalId UNKNOWN: Response stream closed without gRPC status. This may indicate a misconfigured CORS policy on the server: Access-Control-Expose-Headers must include "grpc-status" and "grpc-message".

However the header names are specified in the required properties: image

I've noticed that the error only appears after reading of the stream is completes. I'm not sure what is the solution to this.

ghost avatar Dec 28 '23 15:12 ghost

Thanks for the report @Linker-123.

Do you use any proxy for grpc-web? Or does tonic support grpc-web protocol natively?

aikoven avatar Dec 31 '23 10:12 aikoven