Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with grpc-status, grpc-message #505

Open
ghost opened this issue Dec 28, 2023 · 1 comment
Open

Problem with grpc-status, grpc-message #505

ghost opened this issue Dec 28, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 28, 2023

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.

@aikoven
Copy link
Contributor

aikoven commented Dec 31, 2023

Thanks for the report @Linker-123.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant