grpc / grpc-web

gRPC for Web Clients
https://grpc.io
Apache License 2.0
8.45k stars 761 forks source link

No matter what error code the server returns, the TS code always gets {code: 2, message: 'Incomplete response'} #1328

Closed Siceberg closed 1 year ago

Siceberg commented 1 year ago

I found in the demo project that, regardless of the error code returned by the server (I can clearly see that the value of grpc-status is consistent with the return value of the server in the browser's Response Headers), and the RpcError captured in the calling logic of typesscript But always {code: 2, message: 'Incomplete response'}.

Please tell me how to solve this problem, thank you very much.

Siceberg commented 1 year ago

951