deeplay-io / nice-grpc

A TypeScript gRPC library that is nice to you

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug with always getting exception "UNKNOWN: Response stream closed without gRPC status"

JustFeitan opened this issue · comments

We have various exceptions on our backend, I only get the error "UNKNOWN: Response stream closed without gRPC status" (screen attached). But at the same time I receive headers with required information, which are sent to me from the backend, but i can't access the using onHeader option
Exception:
Screenshot_4
Network(1):
Screenshot_5
Network(2):
Screenshot_6

After some investigation we figured out that the reason was that the server didn't send the correct Access-Control-Expose-Headers CORS header.

The problem went away after we set the server to return Access-Control-Expose-Headers: *.

As a resolution to this issue we will update the error message to mention it.