nice-grpc
nice-grpc copied to clipboard
Problem with grpc-status, grpc-message
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:
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.
Thanks for the report @Linker-123.
Do you use any proxy for grpc-web? Or does tonic
support grpc-web protocol natively?